diff --git a/backoffice/backoffice/workflows/models.py b/backoffice/backoffice/workflows/models.py index bd0be800..1ec12b45 100644 --- a/backoffice/backoffice/workflows/models.py +++ b/backoffice/backoffice/workflows/models.py @@ -36,7 +36,7 @@ class Workflow(models.Model): class WorkflowTicket(models.Model): - workflow = models.ForeignKey( + workflow_id = models.ForeignKey( Workflow, related_name="tickets", on_delete=models.CASCADE ) ticket_id = models.CharField( @@ -51,7 +51,7 @@ class Decision(models.Model): user = models.ForeignKey( User, to_field="email", - related_name="decisions", + related_name="tickets", db_column="email", on_delete=models.CASCADE, )