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

[experiments][serializers] Update code using annotate_full_name

parent 9ee3c8ee
No related branches found
No related tags found
1 merge request!327Refactor update creation api
...@@ -71,7 +71,7 @@ class ExperimentCreationSerializer(serializers.ModelSerializer): ...@@ -71,7 +71,7 @@ class ExperimentCreationSerializer(serializers.ModelSerializer):
def toolchain_queryset(self): def toolchain_queryset(self):
user = self.context.get("user") 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): def validate_name(self, name):
# sanitize_name is a static method of Versionable models but Experiment # 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