Commit 7faae029 authored by Michal Čihař's avatar Michal Čihař

A little bit of PEP-8

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent a3ab4d6d
......@@ -35,7 +35,8 @@ HELP_TEMPLATE = '<p class="help-block">%s</p>'
class BootstrapErrorList(ErrorList):
def as_ul(self):
if not self: return ''
if not self:
return ''
return format_html_join(
'',
u'<p class="text-danger">{0}</p>',
......@@ -67,7 +68,7 @@ class BootstrapForm(Form):
normal_row=DIV_TEMPLATE,
error_row=u'%s',
row_ender='</div>',
help_text_html = HELP_TEMPLATE,
help_text_html=HELP_TEMPLATE,
errors_on_separate_row=False
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment