Fixed student status serializer

This commit is contained in:
Keannu Bernasol 2023-09-26 18:59:33 +08:00
parent 7dc80caee7
commit e6d85203b0

View file

@ -39,7 +39,7 @@ class StudentStatusSerializer(serializers.ModelSerializer):
validated_data['location'] = Point(0, 0) validated_data['location'] = Point(0, 0)
validated_data['subject'] = None validated_data['subject'] = None
validated_data['landmark'] = None validated_data['landmark'] = None
validated_data['study_group'] = [] validated_data['study_group'] = None
else: else:
if 'subject' not in validated_data: if 'subject' not in validated_data:
raise serializers.ValidationError( raise serializers.ValidationError(