I\'m using the forms framework. And when I set required=True, this error shows. What if I don\'t want it to say \"This field\", but instead, say the label?
Since i\'m no
If you want to customize the message a little bit more you can also:
from django.core.exceptions import ValidationError
def my_validator(value):
if not len(value):
raise ValidationError('Your error message here!')
Then, in your models.py:
from django import forms
class MyForm(forms.Form):
my_field= forms.CharField(validators=[my_validator])