Stop using Django's SlugField to avoid conflicting validation

This commit is contained in:
Raphael Michel
2020-05-10 12:42:37 +02:00
parent 140f041cc1
commit c03c278ecd
3 changed files with 37 additions and 2 deletions

View File

@@ -287,7 +287,7 @@ class Event(EventMixin, LoggedModel):
max_length=200,
verbose_name=_("Event name"),
)
slug = models.SlugField(
slug = models.CharField(
max_length=50, db_index=True,
help_text=_(
"Should be short, only contain lowercase letters, numbers, dots, and dashes, and must be unique among your "