From 629491eeed60f2b6777b240b136e140e915fb2e1 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 26 Oct 2023 17:32:01 +0200 Subject: [PATCH] no default published date --- app/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/item/models.py b/app/item/models.py index ef325eb..18da93f 100644 --- a/app/item/models.py +++ b/app/item/models.py @@ -31,7 +31,7 @@ class Item(models.Model): title = models.CharField(max_length=1024) url = models.CharField(max_length=1024, unique=True) description = models.TextField(default="", blank=True, editable=False) - published = models.DateTimeField(default=timezone.now, null=True, blank=True) + published = models.DateTimeField(default=None, null=True, blank=True) announced = models.DateTimeField(null=True, default=None, blank=True, editable=False) data = models.JSONField(default=dict, editable=False) user = models.ForeignKey(User, null=True, related_name='items', on_delete=models.CASCADE)