Skip to content

Commit

Permalink
Add missing on_delete on GenericLastTransitionLog model
Browse files Browse the repository at this point in the history
  • Loading branch information
dzen authored and rbarrois committed Sep 3, 2017
1 parent f0169f8 commit e7e7179
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_xworkflows/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,8 @@ class GenericLastTransitionLog(BaseLastTransitionLog):

content_type = models.ForeignKey(
ct_models.ContentType, verbose_name=_("Content type"), related_name='last_transition_logs',
blank=True, null=True)
blank=True, null=True, on_delete=models.CASCADE,
)
content_id = models.PositiveIntegerField(_("Content id"), blank=True, null=True, db_index=True)
modified_object = ct_fields.GenericForeignKey(ct_field="content_type", fk_field="content_id")

Expand Down

0 comments on commit e7e7179

Please sign in to comment.