From 01ed35c00e56f6fd729e11af08f0ec9b1a4bd7b6 Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 9 Sep 2024 10:25:55 +0300 Subject: [PATCH] Hotfix: users/serializeres.py line 325 --- users/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/serializers.py b/users/serializers.py index f11cec03..3c5258e6 100755 --- a/users/serializers.py +++ b/users/serializers.py @@ -322,7 +322,7 @@ def _create_user_county(self, instance, counties): county_obj = {} county_obj['updated_by'] = user county_obj['created_by'] = user - county_obj['county_id'] = county.pop('id') + county_obj['county_id'] = county.pop('id', None) # county.pop('id') if 'id' in county else None county_obj['user'] = instance county_obj['active'] = county.get('active', True) UserCounty.objects.create(**county_obj)