Skip to content

Commit f702931

Browse files
committed
Fix typo
1 parent 14457a1 commit f702931

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/serializers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,13 +1002,13 @@ def validate(self, data):
10021002
try:
10031003
data['report'] = Report.objects.get(type='adult', pk=self.context.get('observation_uuid'))
10041004
except Report.DoesNotExist:
1005-
raise serializers.ValidationError("The observation does not does not exist.")
1005+
raise serializers.ValidationError("The observation does not exist.")
10061006

10071007
if best_photo_uuid := data.pop('best_photo_uuid', None):
10081008
try:
10091009
data['best_photo'] = Photo.objects.get(report=data['report'], uuid=best_photo_uuid)
10101010
except Photo.DoesNotExist:
1011-
raise serializers.ValidationError("The photo does not does not exist or does not belong to the observation.")
1011+
raise serializers.ValidationError("The photo does not exist or does not belong to the observation.")
10121012

10131013
is_flagged = data.pop("is_flagged")
10141014
is_visible = data.pop("is_visible", self.ObservationFlagsSerializer().fields['is_visible'].default)
@@ -1318,7 +1318,7 @@ def validate(self, data):
13181318
try:
13191319
data['best_photo'] = Photo.objects.get(report=data['report'], uuid=public_photo_uuid)
13201320
except Photo.DoesNotExist:
1321-
raise serializers.ValidationError("The photo does not does not exist or does not belong to the observation.")
1321+
raise serializers.ValidationError("The photo does not exist or does not belong to the observation.")
13221322

13231323
return data
13241324

0 commit comments

Comments
 (0)