Answer the question
In order to leave comments, you need to log in
Django. How to set custom error text for a form field?
class Url(models.Model):
full = models.URLField(max_length=300, verbose_name='Полный URL',
error_messages={'invalid': 'Введите корректный адрес'},
validators=[validators.URLValidator(message='Введите корректный адрес',
code='invalid')])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question