From 1b3207d86b41d22fd24412a9ee2dcc7479200aac Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Tue, 19 Dec 2023 18:35:54 +0800 Subject: [PATCH] Hotfix for study groups radius --- stude/study_groups/serializers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stude/study_groups/serializers.py b/stude/study_groups/serializers.py index fe0acdd..f062c9d 100644 --- a/stude/study_groups/serializers.py +++ b/stude/study_groups/serializers.py @@ -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