From 30b8e6c3979e224408f113c06573bd67e454f0de Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 10 Nov 2021 22:42:40 +0530 Subject: [PATCH] Fix issues --- app/management/commands/import.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/management/commands/import.py b/app/management/commands/import.py index 5b89c47..6acf432 100644 --- a/app/management/commands/import.py +++ b/app/management/commands/import.py @@ -308,10 +308,12 @@ class Command(BaseCommand): print("Doing an import of all csvs") for csv_file_name, model_name in self.csv_files_models_dict.items(): print("Importing %s -- %s" % (csv_file_name, model_name)) - if model_name in ['Range', 'NamesImport', 'ImportGeom210915', 'Organization', 'AddElevation', + models_to_ignore = ['Range', 'NamesImport', 'ImportGeom210915', 'Organization', 'AddElevation', 'GMBA_V2_Centroid', 'Person', 'PeopleRange', 'PeopleFunction', "PeopleResource", "RangeCountry", "RangeNameTranslation", "RangeOnlineInfo", "ResourceRange", - "ResourceKeyword", "Repository"]: + "ResourceKeyword", "Repository"] + models_to_ignore = [] + if model_name in models_to_ignore: # we have already imported and do not want to spend more time redoing stuff continue if csv_folder_path.endswith('/'):