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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -