From 76d0c7c81818f44d7a4435aad30fdd263f7dc928 Mon Sep 17 00:00:00 2001 From: Richard Hajdu Date: Wed, 18 Dec 2013 13:09:02 +0100 Subject: [PATCH] Update forms.py fixes button primary issue on submit. --- bootstrap3/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap3/forms.py b/bootstrap3/forms.py index d4f4e2be..4db016d9 100644 --- a/bootstrap3/forms.py +++ b/bootstrap3/forms.py @@ -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.')