I have a ChoiceField, now how do I get a “tag” when I need it?
class ContactForm(forms.Form): reason = forms.ChoiceField(choices=[("feature", "A feature"), ("order", "An order")], widget=forms.RadioSelect)
form.cleaned_data["reason"] will only provide me with a "function" or an "order" or so.
python django
webjunkie Apr 17 '09 at 18:43 2009-04-17 18:43
source share