From d6cfb69829a82bbc7a986582df85908bf69227f7 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 10 Dec 2021 21:58:24 +0000 Subject: [PATCH] . --- physics/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physics/views.py b/physics/views.py index 5ef506f4..41158f74 100644 --- a/physics/views.py +++ b/physics/views.py @@ -267,7 +267,7 @@ def loadJsonAnswer(answer): # The model should catch invalid data but this should be less intensive max_int = 2147483647 if answer["cid"] > max_int or answer["eid"] > max_int: - return False, JsonResponse({"success": False}) + return False, JsonResponse({"success": False, "error": "invalid candidate id"}) exam = get_object_or_404(Exam, pk=answer["eid"])