This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import forms | |
from django.core import validators | |
from django.core.exceptions import ValidationError | |
from django.utils.translation import ugettext_lazy as _ | |
class MinLengthValidator(validators.MinLengthValidator): | |
message = _("Ensure this value has at least %(limit_value)d elements (it has %(show_value)d).") | |