From d82c38579fd3549934d63da059966a1367eb619b Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 28 Sep 2022 17:00:59 -0400 Subject: [PATCH] Fix my type hint problem --- src/spiffworkflow_backend/models/secret_model.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/spiffworkflow_backend/models/secret_model.py b/src/spiffworkflow_backend/models/secret_model.py index 472d7c80..9eab36b4 100644 --- a/src/spiffworkflow_backend/models/secret_model.py +++ b/src/spiffworkflow_backend/models/secret_model.py @@ -6,6 +6,7 @@ from flask_bpmn.models.db import SpiffworkflowBaseDBModel from marshmallow import Schema from sqlalchemy import ForeignKey from sqlalchemy.orm import relationship +from sqlalchemy.orm import RelationshipProperty from spiffworkflow_backend.models.user import UserModel @@ -20,7 +21,9 @@ class SecretModel(SpiffworkflowBaseDBModel): value: str = db.Column(db.String(255), nullable=False) creator_user_id: int = db.Column(ForeignKey(UserModel.id), nullable=False) - allowed_processes = relationship("SecretAllowedProcessPathModel", cascade="delete") + allowed_processes: RelationshipProperty = relationship( + "SecretAllowedProcessPathModel", cascade="delete" + ) @dataclass()