diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2018-03-16 10:54:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-16 10:54:34 +0100 |
| commit | 362813d6287925b8f63f0b107c55a74d95f5825e (patch) | |
| tree | efd69a3deb9e837624279e5abfdd8d55d57dcd7c /django/forms | |
| parent | aeb8c381789ad93866223f8bd07d09ae5e2edd9e (diff) | |
Fixed hanging indentation in various code.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/forms.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py index 86f9399001..51e6465539 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -281,7 +281,8 @@ class BaseForm: error_row='<tr><td colspan="2">%s</td></tr>', row_ender='</td></tr>', help_text_html='<br><span class="helptext">%s</span>', - errors_on_separate_row=False) + errors_on_separate_row=False, + ) def as_ul(self): "Return this form rendered as HTML <li>s -- excluding the <ul></ul>." @@ -290,7 +291,8 @@ class BaseForm: error_row='<li>%s</li>', row_ender='</li>', help_text_html=' <span class="helptext">%s</span>', - errors_on_separate_row=False) + errors_on_separate_row=False, + ) def as_p(self): "Return this form rendered as HTML <p>s." @@ -299,7 +301,8 @@ class BaseForm: error_row='%s', row_ender='</p>', help_text_html=' <span class="helptext">%s</span>', - errors_on_separate_row=True) + errors_on_separate_row=True, + ) def non_field_errors(self): """ |
