[Answer]-How to override default errors in Django

1👍

min_length is applied to django.core.validators.MinLengthValidator which has default message as:

message = _('Ensure this value is %(limit_value)s (it is %(show_value)s).')

And params as:

params = {'limit_value': self.limit_value, 'show_value': cleaned}

Thus try to change 'length' to 'show_value'.

👤okm

Leave a comment