mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 08:34:55 +00:00
Merge pull request #290 from KiwiTechLLC/sprint6-bugs
elif for guardian code
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user