Allow to generate random slugs

This commit is contained in:
Raphael Michel
2017-06-28 18:20:06 +02:00
parent 4bd0b96a2d
commit ea970be6f2
6 changed files with 38 additions and 2 deletions

View File

@@ -67,7 +67,9 @@ class Event(LoggedModel):
max_length=50, db_index=True,
help_text=_(
"Should be short, only contain lowercase letters and numbers, and must be unique among your events. "
"This will be used in order codes, invoice numbers, links and bank transfer references."),
"We recommend some kind of abbreviation or a date with less than 10 characters that can be easily "
"remembered, but you can also choose to use a random value. "
"This will be used in URLs, order codes, invoice numbers, and bank transfer references."),
validators=[
RegexValidator(
regex="^[a-zA-Z0-9.-]+$",