I have a ModelForm that has a widget of type Select
class MyModelForm(ModelForm):
...
widgets = {
'my_field': Select(
choices=[('1', 'Choice 1')]
),
}
In my view I'm retrieving an already stored model and passing the form as my_form
to the template:
<div>{{ my_form.my_field.value }}</div>
As expected, this outputs:
1
How can I get the text 'Choice 1' instead?