diff options
| author | Iacopo Spalletti <i.spalletti@nephila.it> | 2015-11-07 14:30:20 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-12 14:46:48 -0500 |
| commit | d693074d431c50e4801dd6bf52525ce1436358f0 (patch) | |
| tree | ad452646aad45bf9241478f3fc17803d05320cfc /tests/utils_tests/test_safestring.py | |
| parent | 93fc23b2d542105f5d129dff2dd2c8895e9abd5d (diff) | |
Fixed #20223 -- Added keep_lazy() as a replacement for allow_lazy().
Thanks to bmispelon and uruz for the initial patch.
Diffstat (limited to 'tests/utils_tests/test_safestring.py')
| -rw-r--r-- | tests/utils_tests/test_safestring.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/utils_tests/test_safestring.py b/tests/utils_tests/test_safestring.py index acd36053d6..7cc92a1370 100644 --- a/tests/utils_tests/test_safestring.py +++ b/tests/utils_tests/test_safestring.py @@ -3,13 +3,12 @@ from __future__ import unicode_literals from django.template import Context, Template from django.test import SimpleTestCase from django.utils import html, six, text -from django.utils.encoding import force_bytes, force_text -from django.utils.functional import lazy +from django.utils.encoding import force_bytes +from django.utils.functional import lazy, lazystr from django.utils.safestring import ( EscapeData, SafeData, mark_for_escaping, mark_safe, ) -lazystr = lazy(force_text, six.text_type) lazybytes = lazy(force_bytes, bytes) |
