Skip to content
Snippets Groups Projects
Commit cb0e5500 authored by Samuel GAIST's avatar Samuel GAIST Committed by Samuel GAIST
Browse files

[experiments][serializers] Update code using annotate_full_name

parent 664d7475
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !327. Comments created here will be created in the context of that merge request.
......@@ -71,7 +71,7 @@ class ExperimentCreationSerializer(serializers.ModelSerializer):
def toolchain_queryset(self):
user = self.context.get("user")
return annotate_full_name(Toolchain).for_user(user, True)
return annotate_full_name(Toolchain.objects.for_user(user, True))
def validate_name(self, name):
# sanitize_name is a static method of Versionable models but Experiment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment