diff options
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index a9e778dd6..e0fd05a03 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -407,10 +407,13 @@ class HistoryError(Exception): class BaseHistorizedItem(models.Model): history_modifier = models.ForeignKey(User, related_name='+', - verbose_name=_(u"Last editor")) + on_delete=models.SET_NULL, + verbose_name=_(u"Last editor"), blank=True, + null=True) history_creator = models.ForeignKey(User, related_name='+', - verbose_name=_(u"Creator"), blank=True, - null=True) + on_delete=models.SET_NULL, + verbose_name=_(u"Creator"), blank=True, + null=True) class Meta: abstract = True |