djangosnippets.org: Latest snippets posted by lazersciencehttps://djangosnippets.org/users/lazerscience/2010-11-08T16:34:51.900894-06:00lazerscienceAdd CSS class template filter
2010-11-08T16:34:51.900894-06:00lazersciencehttps://djangosnippets.org/snippets/2253/<p>Sometimes you want to add CSS classes to HTML elements that are generated by Django using their <code>__unicode__</code> representation, eg. you can output a form field with <code>{{ form.name }}</code>, but if you would like to add a certain CSS class to the outputted input or select tag you …</p>
Freely redistributable