From 3b6deb035606c6a47b4f91182e7d9a3ab342be47 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Mon, 9 Feb 2026 08:58:06 +0330 Subject: [PATCH] fix --> org addresses org.id bug --- apps/authentication/api/v1/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/authentication/api/v1/api.py b/apps/authentication/api/v1/api.py index 26aa96e..9419e2d 100644 --- a/apps/authentication/api/v1/api.py +++ b/apps/authentication/api/v1/api.py @@ -296,7 +296,7 @@ class OrganizationViewSet(BaseViewSet, ModelViewSet, DynamicSearchMixin): address_obj_list = [] for addr in request.data['addresses']: - addr.update({'org': organization.id}) + addr.update({'org': organization}) address_obj_list.append( OrganizationLocationInfo(**addr) ) @@ -343,7 +343,7 @@ class OrganizationViewSet(BaseViewSet, ModelViewSet, DynamicSearchMixin): # create new locations address_obj_list = [] for addr in request.data['addresses']: - addr.update({'org': organization.id}) + addr.update({'org': organization}) address_obj_list.append( OrganizationLocationInfo(**addr) )