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
#!/usr/bin/env bash | |
# Change the directory in which the code style fixes should be executed by changing the WWW_DIR variable | |
# | |
# DO NOT USE THIS WITH PARTIAL COMMITS | |
# If you want to do partial commits, disable hooks by using the "--no-verify" option when commiting | |
# | |
# Attention: Not tested with cygwin and linux | |
set -e |
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).") | |