improvement to custom user endpoint
This commit is contained in:
@@ -79,7 +79,6 @@ class Command(BaseCommand):
|
||||
logging.info(f"Creating Province instance {location['fields']['name']}...")
|
||||
name = location['fields']['name']
|
||||
# get parent region
|
||||
# import ipdb; ipdb.set_trace()
|
||||
parent_region = Region.objects.get(id=location['fields']['region'])
|
||||
Province.objects.create(name=name, region=parent_region, id=location['pk'])
|
||||
province_counter += 1
|
||||
|
||||
Reference in New Issue
Block a user