diff --git a/app/management/commands/import.py b/app/management/commands/import.py index 5f27e13..d00947b 100644 --- a/app/management/commands/import.py +++ b/app/management/commands/import.py @@ -402,7 +402,7 @@ def handle_object_dict(object_dict, model_name): if object_dict['mother_range'] == '': object_dict['mother_range'] = 0 try: - object_dict['mother_range'] = Range.objects.get(id=int(object_dict['mother_range'].strip('\''))) + object_dict['mother_range'] = Range.objects.get(id=0) # default Range which exists already except Range.DoesNotExist as dne: print(str(dne)) if model_name == 'Keyword':