From e6d85203b064c558b53d9879227a59a46ab52697 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Tue, 26 Sep 2023 18:59:33 +0800 Subject: [PATCH] Fixed student status serializer --- stude/student_status/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stude/student_status/serializers.py b/stude/student_status/serializers.py index 6c1346c..c7c68b5 100644 --- a/stude/student_status/serializers.py +++ b/stude/student_status/serializers.py @@ -39,7 +39,7 @@ class StudentStatusSerializer(serializers.ModelSerializer): validated_data['location'] = Point(0, 0) validated_data['subject'] = None validated_data['landmark'] = None - validated_data['study_group'] = [] + validated_data['study_group'] = None else: if 'subject' not in validated_data: raise serializers.ValidationError(