Skip to content

Commit

Permalink
Update forms.py
Browse files Browse the repository at this point in the history
fixes button primary issue on submit.
  • Loading branch information
Tusky committed Dec 18, 2013
1 parent 62339b0 commit 76d0c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap3/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def render_button(content, button_type=None, icon=None):
icon_content = ''
if button_type:
if button_type == 'submit':
attrs['class'] += 'btn btn-primary'
attrs['class'] += ' btn-primary'
elif button_type != 'reset' and button_type != 'button':
raise BootstrapError('Parameter "button_type" should be ' +
'"submit", "reset", "button" or empty.')
Expand Down

0 comments on commit 76d0c7c

Please sign in to comment.