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"