no default published date

This commit is contained in:
j 2023-10-26 17:32:01 +02:00
parent 2acecdd0ef
commit 629491eeed

View file

@ -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)