From 558c24a6586e7a0e7700e891209735d4d8fd49b8 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Thu, 17 Oct 2024 12:35:28 +0200 Subject: [PATCH] Add username in training endpoint --- backend/core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/views.py b/backend/core/views.py index d22d09ad..c8d9c168 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -95,7 +95,7 @@ class DatasetViewSet( class TrainingSerializer( serializers.ModelSerializer ): # serializers are used to translate models objects to api - + user = UserSerializer(read_only=True) multimasks = serializers.BooleanField(required=False, default=False) input_contact_spacing = serializers.IntegerField( required=False, default=8, min_value=0, max_value=20