diff --git a/app/management/commands/import.py b/app/management/commands/import.py index ca59700..3e65560 100644 --- a/app/management/commands/import.py +++ b/app/management/commands/import.py @@ -409,7 +409,7 @@ def handle_object_dict(object_dict, model_name): object_dict['organization_id'] = int(float(object_dict['organization_id'])) if 'status' in object_dict: print('Getting status of %s' % object_dict['status']) - object_dict['status'] = PeopleStatus.objects.get(int(object_dict['status'])) + object_dict['status'] = PeopleStatus.objects.get(id=int(object_dict['status'])) for i in ['news_letter', 'birds', 'mammals', 'reptiles', 'amphibians', 'fish', 'insects', 'molluscs', 'crustaceans', 'arachnids', 'angiosperms', 'gymnosperms', 'fungi', 'algae', 'microbes', 'biological_field_sampling', 'data_mining', 'remote_sensing',