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