Skip to content
Snippets Groups Projects
Commit 170b0357 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Make gpu and agent nullable in doc for task from agent update and retrieve

parent de05845d
No related branches found
No related tags found
1 merge request!2108Make gpu and agent nullable in doc for task from agent update and retrieve
......@@ -137,8 +137,8 @@ class TaskSerializer(TaskLightSerializer):
logs = serializers.CharField(source="short_logs", read_only=True)
full_log = serializers.URLField(source="s3_logs_get_url", read_only=True)
agent = AgentLightSerializer(read_only=True)
gpu = GPUSerializer(read_only=True)
agent = AgentLightSerializer(read_only=True, allow_null=True)
gpu = GPUSerializer(read_only=True, allow_null=True)
extra_files = serializers.DictField(read_only=True)
class Meta(TaskLightSerializer.Meta):
......
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