Made manual submit_id check and IntegrityError messages the same (were different to distinguish which is blocking the request when running locally)

This commit is contained in:
Justus Ojala
2025-10-13 20:37:09 +03:00
parent 9a2168e47f
commit 61ac177ce3
+2 -2
View File
@@ -219,7 +219,7 @@ class SignupViewSet(ModelViewSet):
submit_id=request.data["submit_id"]
):
return JsonResponse(
status=200, data={"message": "I heard you the first time"}
status=200, data={"message": "The submission has already been received"}
)
id = request.data["signupForm_id"]
@@ -238,7 +238,7 @@ class SignupViewSet(ModelViewSet):
)
except IntegrityError:
return JsonResponse(
status=200, data={"message": "The submission had already been received"}
status=200, data={"message": "The submission has already been received"}
)
else:
return JsonResponse(