From b26fedacef16cc42a4fdd891af06ca925d4bb418 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 6 May 2016 12:23:52 +0200 Subject: Fixed #26544 -- Delayed translations of SetPasswordForm help_texts Thanks Michael Bitzi for the reporti and Tim Graham for the review. --- django/contrib/auth/password_validation.py | 6 ++++-- docs/releases/1.9.7.txt | 3 +++ tests/auth_tests/test_forms.py | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/django/contrib/auth/password_validation.py b/django/contrib/auth/password_validation.py index 2af5202207..aba2d6f1cf 100644 --- a/django/contrib/auth/password_validation.py +++ b/django/contrib/auth/password_validation.py @@ -10,9 +10,10 @@ from django.core.exceptions import ImproperlyConfigured, ValidationError from django.utils import lru_cache from django.utils._os import upath from django.utils.encoding import force_text +from django.utils.functional import lazy from django.utils.html import format_html from django.utils.module_loading import import_string -from django.utils.six import string_types +from django.utils.six import string_types, text_type from django.utils.translation import ugettext as _, ungettext @@ -77,7 +78,7 @@ def password_validators_help_texts(password_validators=None): return help_texts -def password_validators_help_text_html(password_validators=None): +def _password_validators_help_text_html(password_validators=None): """ Return an HTML string with all help texts of all configured validators in an