summaryrefslogtreecommitdiff
path: root/django/contrib/flatpages/forms.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-02-05 13:53:03 -0500
committerTim Graham <timograham@gmail.com>2016-02-05 15:11:07 -0500
commit406675b1a03c0568f7768a73e7c279011e56054d (patch)
tree092da11ce8e2773a29576b2d937e188c7a46621d /django/contrib/flatpages/forms.py
parent275314512d7dd10065026f02f61931e4c62c9cc8 (diff)
downloaddjango-406675b1a03c0568f7768a73e7c279011e56054d.tar.gz
Fixed #26176 -- Fixed E123 flake8 warnings.26176
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."
+ ),
},
)