fixed sqlalchemy warning w/ burnettk

This commit is contained in:
jasquat 2023-04-20 15:00:12 -04:00
parent ba893eda4f
commit f3d3c31dd5
No known key found for this signature in database
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: