diff options
Diffstat (limited to 'django/test/client.py')
-rw-r--r-- | django/test/client.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/django/test/client.py b/django/test/client.py index 20283b7b3b..6c5f4ff4a9 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -20,6 +20,7 @@ from django.utils.encoding import smart_str from django.utils.http import urlencode from django.utils.itercompat import is_iterable from django.db import transaction, close_connection +from django.test.utils import ContextList BOUNDARY = 'BoUnDaRyStRiNg' MULTIPART_CONTENT = 'multipart/form-data; boundary=%s' % BOUNDARY @@ -80,8 +81,8 @@ def store_rendered_templates(store, signal, sender, template, context, **kwargs) """ Stores templates and contexts that are rendered. """ - store.setdefault('template',[]).append(template) - store.setdefault('context',[]).append(context) + store.setdefault('template', []).append(template) + store.setdefault('context', ContextList()).append(context) def encode_multipart(boundary, data): """ |