diff --git a/contraxsuite_services/apps/document/migration/document_import.py b/contraxsuite_services/apps/document/migration/document_import.py index 235cba3a..3e81b9e3 100644 --- a/contraxsuite_services/apps/document/migration/document_import.py +++ b/contraxsuite_services/apps/document/migration/document_import.py @@ -208,6 +208,10 @@ def import_projects(self): if proj_type in self.missing_doc_types: raise Exception(f'Doc. type {self.missing_doc_types[proj_type]} ' + f'was not found, project "{proj_name}"') + if self.project: + self.project_ids[proj_id] = self.project.pk + continue + proj_type = self.document_types[proj_type] # TRANSACTION starts here with transaction.atomic():