diff --git a/src/spiffworkflow_backend/load_database_models.py b/src/spiffworkflow_backend/load_database_models.py index ef5113d0..12b33a7e 100644 --- a/src/spiffworkflow_backend/load_database_models.py +++ b/src/spiffworkflow_backend/load_database_models.py @@ -10,10 +10,12 @@ avoid circular imports from flask_bpmn.models.db import add_listeners -# must load this before UserModel and GroupModel for relationships +# must load these before UserModel and GroupModel for relationships from spiffworkflow_backend.models.user_group_assignment import ( UserGroupAssignmentModel, ) # noqa: F401 +from spiffworkflow_backend.models.principal import PrincipalModel # noqa: F401 + from spiffworkflow_backend.models.active_task import ActiveTaskModel # noqa: F401 from spiffworkflow_backend.models.bpmn_process_id_lookup import ( @@ -37,7 +39,6 @@ from spiffworkflow_backend.models.permission_assignment import ( from spiffworkflow_backend.models.permission_target import ( PermissionTargetModel, ) # noqa: F401 -from spiffworkflow_backend.models.principal import PrincipalModel # noqa: F401 from spiffworkflow_backend.models.process_instance import ( ProcessInstanceModel, ) # noqa: F401