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:
+2
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user