mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
Hotfix for study groups radius
This commit is contained in:
parent
a246a5f24c
commit
1b3207d86b
1 changed files with 1 additions and 4 deletions
|
@ -70,12 +70,9 @@ class StudyGroupDistanceSerializer(serializers.ModelSerializer):
|
|||
fields = '__all__'
|
||||
read_only_fields = ['landmark', 'radius', 'students', 'distance']
|
||||
|
||||
def get_distance(self, obj):
|
||||
return 30
|
||||
|
||||
def to_representation(self, instance):
|
||||
representation = super().to_representation(instance)
|
||||
representation['distance'] = self.get_distance(instance)
|
||||
representation['distance'] = 30
|
||||
return representation
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue