mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-16 22:09:25 +08:00
Fixed student status serializer
This commit is contained in:
parent
7dc80caee7
commit
e6d85203b0
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue