I have a listing of manufacturers in a form (TypedMultipleChoiceField plus CheckboxSelectMultiple widget).
Some of them are recommended (there is Manufaturers model and is_recommended field). And I want to give them special class.
So what I got:
<ul>
<li>Just Audi</li>
<li>Recommended BMW</li>
<li>Just Skoda</li>
</ul>
What I want:
<ul>
<li>Just Audi</li>
<li class='recommended'>Recommended BMW</li>
<li>Just Skoda</li>
</ul>
How can I add the class to the special li?
You could loop through the form fields on the template…