fixed sqlalchemy warning w/ burnettk

This commit is contained in:
jasquat 2023-04-20 15:00:12 -04:00
parent 2dc3b0a76e
commit e7f0bbbce6
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ class ProcessInstanceEventModel(SpiffworkflowBaseDBModel):
user_id = db.Column(ForeignKey(UserModel.id), nullable=True, index=True) # type: ignore
error_details = relationship("ProcessInstanceErrorDetailModel", cascade="delete") # type: ignore
error_details = relationship(
"ProcessInstanceErrorDetailModel", back_populates="process_instance_event", cascade="delete"
) # type: ignore
@validates("event_type")
def validate_event_type(self, key: str, value: Any) -> Any: