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('/'):