Re: Model's verbose_name not getting used as field label when specifying a field type in ModelForm

2019-02-01 Thread Michael Corey
dget similar to > what's described at > https://docs.djangoproject.com/en/stable/ref/forms/widgets/ "Or if the > field isn’t declared directly on the form..." > > I think it would be: self.fields['who'].widget = forms.Textarea() > > On Friday, Februar

Model's verbose_name not getting used as field label when specifying a field type in ModelForm

2019-02-01 Thread Michael Corey
I'm having trouble getting the verbose_name attribute of a model field to show up when rendering a ModelForm. instead, the label uses the pretty version of the field name, not the verbose_name. This occurs any time I specify a field type, and works properly (shows the verbose_name) if I don't s