python - django-crispy Submit css_class -


I am using Django-Crisp to render the form for a project and I have a Bootstrap I am using I have the following coding

  self.helper.layout = layout (field set ('', 'username', 'password',), buttonholder (submit ('signin', 'sign In ', Css_class =' ​​btn btn-default ')))  

but in HTML

  & lt; Div class = "buttonHolder" & gt; & Lt; Input type = "submit" name = "signin" value = "sign" class = "btn btn-primary btn btn-default" id = "submit-id-signin" /> gt; & Lt; / Div & gt;  

Note that the class is "BTN BTN BTN-Primary BTN BTN-Default" when I want "BTN BTN-Default"

Why any thoughts occur? ? Thanks

Try this:

  buttonholder (submit ('signin ',' Sign in '), css_class =' ​​btn btn-link ')  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -