From 61ac177ce3945dde8435b233404fa570e5eac00f Mon Sep 17 00:00:00 2001 From: Justus Ojala Date: Mon, 13 Oct 2025 20:37:09 +0300 Subject: [PATCH] Made manual submit_id check and IntegrityError messages the same (were different to distinguish which is blocking the request when running locally) --- webapp/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/views.py b/webapp/views.py index 95ed3dd..25b1074 100644 --- a/webapp/views.py +++ b/webapp/views.py @@ -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(