django field tag label class -


Is there a way to implement a class in {{field.label_tag}}

I I am using Twitter Bootstrap and want to add a category to the label tag which is field.label_tag

Hopefully there is a way to handle this. I'm using the Django Widget tweaks to do this for the other half of the form for entry into information. Just hope that I'm missing something which will make this part easier.

Do you have {{field.auto_id}} & gt; Tried to manually create a label element for {{field.label}}, such as:

  & lt; Label class = "your-class" & lt; / Labels & gt;   

Reference:

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -