event categories must have names

This commit is contained in:
2024-05-13 02:22:07 +02:00
parent 9b77ac0203
commit aac89edca1
2 changed files with 20 additions and 1 deletions

View File

@ -34,7 +34,8 @@ class EventIndex(Page):
class EventCategory(models.Model):
name = models.CharField(
max_length=100,
null=True,
null=False,
blank=False,
)
slug = models.SlugField(
verbose_name=_("slug"),