diff --git a/rattail_corepos/corepos/office/importing/db/csv.py b/rattail_corepos/corepos/office/importing/db/csv.py index 753fe61..7222cb5 100644 --- a/rattail_corepos/corepos/office/importing/db/csv.py +++ b/rattail_corepos/corepos/office/importing/db/csv.py @@ -48,3 +48,13 @@ class FromCSVToCore(FromCSVToSQLAlchemyMixin, FromFileHandler, ToCoreHandler): def make_session(self): return CoreSession(bind=self.config.corepos_engines[self.dbkey]) + + def get_default_keys(self): + keys = super().get_default_keys() + + # error will occur for any missing files, when running for all + # default models. so make sure some of these are not default. + if 'Change' in keys: + keys.remove('Change') + + return keys