diff options
Diffstat (limited to 'django/template/context_processors.py')
| -rw-r--r-- | django/template/context_processors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/template/context_processors.py b/django/template/context_processors.py index 5568ed9134..da5276ce44 100644 --- a/django/template/context_processors.py +++ b/django/template/context_processors.py @@ -13,7 +13,7 @@ import itertools from django.conf import settings from django.middleware.csrf import get_token -from django.utils.encoding import smart_text +from django.utils.encoding import force_text from django.utils.functional import SimpleLazyObject, lazy @@ -30,7 +30,7 @@ def csrf(request): # instead of returning an empty dict. return 'NOTPROVIDED' else: - return smart_text(token) + return force_text(token) return {'csrf_token': SimpleLazyObject(_get_val)} |
