Skip to content

Commit

Permalink
Add label tag to html output
Browse files Browse the repository at this point in the history
  • Loading branch information
phala committed Jan 28, 2017
1 parent ccc07f5 commit 4283ece
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions formfactory/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,8 @@ def _html_output(self, normal_row, error_row, row_ender, help_text_html,
output.append(error_row % force_text(bf_errors))

if bf.label:
label = ""
if field.required:
label = "* "
label += conditional_escape(force_text(bf.label))
label = conditional_escape(force_text(bf.label))
label = bf.label_tag(label) or ''
else:
label = ''

Expand Down

0 comments on commit 4283ece

Please sign in to comment.