From 34359360e0e5dbb835af2346f75812b9edaa455f Mon Sep 17 00:00:00 2001 From: jain Date: Mon, 28 Aug 2023 12:10:13 +0530 Subject: [PATCH] guardian_status update --- junior/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/junior/views.py b/junior/views.py index 7a95335..c1c110d 100644 --- a/junior/views.py +++ b/junior/views.py @@ -223,7 +223,7 @@ class AddJuniorAPIView(viewsets.ModelViewSet): junior.guardian_code.append(guardian.guardian_code) else: return "Max" - junior.guardian_code_status = [str(NUMBER['two'])] + junior.guardian_code_status.append(str(NUMBER['two'])) junior.save() jun_data, created = JuniorGuardianRelationship.objects.get_or_create(guardian=guardian, junior=junior) if jun_data: