I've got a field defined like this
country = ChoiceField(initial='CA', choices=COUNTRIES, widget=Select(attrs={'class':'address country'}))
Notice how attrs
is set. How can I retrieve this inside the template?
I'm trying things like
{{country.widget.attrs.class}}
But nothing seems to be working.