fix model for room in factoids (allow blank)

This commit is contained in:
Nils Büchner 2024-06-12 22:55:11 +02:00
parent c5bb29d1f1
commit a88c6a3c50

View file

@ -24,7 +24,7 @@ class Fact(models.Model):
id = models.BigAutoField(primary_key=True)
author = models.ForeignKey(User, on_delete=models.SET_NULL, null=True)
room = models.CharField(null=True, default=None, max_length=128)
room = models.CharField(null=True, default=None, max_length=128, blank=True)
create_date = models.DateTimeField("date published", default=timezone.now)
change_date = models.DateTimeField("date changed", default=timezone.now)
popularity = models.IntegerField(default=0)