From d4008d6cc210a410235b190da2af5421108ee834 Mon Sep 17 00:00:00 2001 From: jain Date: Tue, 29 Aug 2023 17:50:58 +0530 Subject: [PATCH] elif for guardian code --- junior/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/junior/views.py b/junior/views.py index 64aaffb..716ed70 100644 --- a/junior/views.py +++ b/junior/views.py @@ -219,7 +219,7 @@ class AddJuniorAPIView(viewsets.ModelViewSet): return False if not junior.guardian_code: junior.guardian_code = [guardian.guardian_code] - if type(junior.guardian_code) is list and len(junior.guardian_code) < 3: + elif type(junior.guardian_code) is list and len(junior.guardian_code) < 3: junior.guardian_code.append(guardian.guardian_code) else: return "Max"