forked from CGM_Public/pretix_original
Make event slug helptext more accurate
This commit is contained in:
@@ -199,8 +199,8 @@ class Event(EventMixin, LoggedModel):
|
|||||||
slug = models.SlugField(
|
slug = models.SlugField(
|
||||||
max_length=50, db_index=True,
|
max_length=50, db_index=True,
|
||||||
help_text=_(
|
help_text=_(
|
||||||
"Should be short, only contain lowercase letters and numbers, and must be unique among your events. "
|
"Should be short, only contain lowercase letters, numbers, dots, and dashes, and must be unique among your "
|
||||||
"We recommend some kind of abbreviation or a date with less than 10 characters that can be easily "
|
"events. 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. "
|
"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."),
|
"This will be used in URLs, order codes, invoice numbers, and bank transfer references."),
|
||||||
validators=[
|
validators=[
|
||||||
|
|||||||
@@ -32,8 +32,9 @@ class Organizer(LoggedModel):
|
|||||||
slug = models.SlugField(
|
slug = models.SlugField(
|
||||||
max_length=50, db_index=True,
|
max_length=50, db_index=True,
|
||||||
help_text=_(
|
help_text=_(
|
||||||
"Should be short, only contain lowercase letters and numbers, and must be unique among your events. "
|
"Should be short, only contain lowercase letters, numbers, dots, and dashes, and must be unique among your "
|
||||||
"This is being used in addresses and bank transfer references."),
|
"events. "
|
||||||
|
"This is being used in URLs to refer to your events."),
|
||||||
validators=[
|
validators=[
|
||||||
RegexValidator(
|
RegexValidator(
|
||||||
regex="^[a-zA-Z0-9.-]+$",
|
regex="^[a-zA-Z0-9.-]+$",
|
||||||
|
|||||||
Reference in New Issue
Block a user