diff options
| author | Paul <sajattack@gmail.com> | 2017-03-23 08:11:01 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-03-23 11:11:01 -0400 |
| commit | 001cf53280f7e2b72199237f37c340d2639fe143 (patch) | |
| tree | b9b426a66bde16c7d46d7a1c0beac69080ffb32d | |
| parent | 40ffabe8dc81244ab8ee53e1318517b37cb71284 (diff) | |
Fixed #27952 -- Added translation hint for RegexValidator error message.
| -rw-r--r-- | django/core/validators.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/core/validators.py b/django/core/validators.py index da1959c7d6..89568cfb05 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -234,6 +234,7 @@ validate_email = EmailValidator() slug_re = _lazy_re_compile(r'^[-a-zA-Z0-9_]+\Z') validate_slug = RegexValidator( slug_re, + # Translators: "letters" means latin letters: a-z and A-Z. _("Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens."), 'invalid' ) |
