我有ChoiceField
分,现在我需要的时候怎么拿到label分呢?
class ContactForm(forms.Form):
reason = forms.ChoiceField(choices=[("feature", "A feature"),
("order", "An order")],
widget=forms.RadioSelect)
form.cleaned_data["reason"]
只给我feature
或order
values左右.