Skip to content

Commit

Permalink
Hotfix: users/serializeres.py line 325
Browse files Browse the repository at this point in the history
  • Loading branch information
ertush committed Sep 9, 2024
1 parent 01ed35c commit 4e26c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', None) # county.pop('id') if 'id' in county else None
county_obj['county_id'] = county.pop('id', []) # 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)
Expand Down

0 comments on commit 4e26c09

Please sign in to comment.