From 68e43d0b90c39bf1e7daca3baf215dd82760cb13 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 27 Nov 2021 23:26:08 +0100 Subject: [PATCH] make creation field permanent --- InvenTree/common/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index 96f3437ae6..10b2796768 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -1471,6 +1471,8 @@ class NotificationMessage(models.Model): on_delete=models.CASCADE, verbose_name=_('User'), help_text=_('User'), + null=True, + blank=True, ) category = models.CharField( @@ -1492,6 +1494,7 @@ class NotificationMessage(models.Model): creation = models.DateTimeField( auto_now=True, null=False, + editable=False, ) read = models.BooleanField(