I want to create a custom name for on of the labels in my modelform this is my forms.py
class PostForm(forms.ModelForm): body = forms.CharField(widget=Pa
From the documentation:
You can specify the labels, help_texts and error_messages attributes of the inner Meta class if you want to further customize a field.
There are examples just below that section of the docs. So, you can do:
class Meta: model = Post labels = { "video": "Embed" }