Commits

Ivan Zakrevsky  committed fc9bd73

Revision.editor.on_delete=models.SET_NULL

  • Participants
  • Parent commits 92d1fbb

Comments (0)

Files changed (1)

File versioning/models.py

                                blank=True)
 
     editor = models.ForeignKey(User, verbose_name=_('Editor'),
-                               blank=True, null=True)
+                               blank=True, null=True,
+                               on_delete=models.SET_NULL)
     editor_ip = models.IPAddressField(_("IP Address of the Editor"),
                                       blank=True, null=True)