By default, when a form is created in django using ModelForm, the labels for each field are basically the name of each field with the first letter capitalized. However, I want to write my own labels for each of the fields instead of using the default ones. Is there a shortcut for doing that?
Yes, add verbose_name to the field definition.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With