summaryrefslogtreecommitdiff
path: root/django/contrib/flatpages/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/flatpages/forms.py')
-rw-r--r--django/contrib/flatpages/forms.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/django/contrib/flatpages/forms.py b/django/contrib/flatpages/forms.py
index b990fa36de..19f3b6309c 100644
--- a/django/contrib/flatpages/forms.py
+++ b/django/contrib/flatpages/forms.py
@@ -5,12 +5,16 @@ from django.utils.translation import ugettext, ugettext_lazy as _
class FlatpageForm(forms.ModelForm):
- url = forms.RegexField(label=_("URL"), max_length=100, regex=r'^[-\w/\.~]+$',
- help_text=_("Example: '/about/contact/'. Make sure to have leading"
- " and trailing slashes."),
+ url = forms.RegexField(
+ label=_("URL"),
+ max_length=100,
+ regex=r'^[-\w/\.~]+$',
+ help_text=_("Example: '/about/contact/'. Make sure to have leading and trailing slashes."),
error_messages={
- "invalid": _("This value must contain only letters, numbers,"
- " dots, underscores, dashes, slashes or tildes."),
+ "invalid": _(
+ "This value must contain only letters, numbers, dots, "
+ "underscores, dashes, slashes or tildes."
+ ),
},
)