diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-01-29 14:58:20 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-01-30 14:13:29 +0100 |
| commit | c688336ebcc1bddc65f2d48e15b981b6caa7ef1a (patch) | |
| tree | 7f38874e146a0a6db20e4535611501de22394113 /django/template/context_processors.py | |
| parent | 89501d9298494d732f56cf577e70d4203f45467b (diff) | |
Refs #23919 -- Assumed request COOKIES and META are str
Diffstat (limited to 'django/template/context_processors.py')
| -rw-r--r-- | django/template/context_processors.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/template/context_processors.py b/django/template/context_processors.py index 85cd3eaa5f..3e73d176ea 100644 --- a/django/template/context_processors.py +++ b/django/template/context_processors.py @@ -11,7 +11,6 @@ import itertools from django.conf import settings from django.middleware.csrf import get_token -from django.utils.encoding import force_text from django.utils.functional import SimpleLazyObject, lazy @@ -28,7 +27,7 @@ def csrf(request): # instead of returning an empty dict. return 'NOTPROVIDED' else: - return force_text(token) + return token return {'csrf_token': SimpleLazyObject(_get_val)} |
