1
0
mirror of https://github.com/django/django.git synced 2025-07-06 10:49:17 +00:00

[1.2.X] Fixed error that was introduced in [15601] causing lots of test failures on 1.2.X

In 1.2.X and earlier, the test client adds the 'template' attribute to
responses, while in trunk it adds 'templates', hence the confusion.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15622 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2011-02-21 22:56:01 +00:00
parent 31d0f2fa29
commit a6114e1a14

View File

@ -97,7 +97,7 @@ def store_rendered_templates(store, signal, sender, template, context, **kwargs)
The context is copied so that it is an accurate representation at the time The context is copied so that it is an accurate representation at the time
of rendering. of rendering.
""" """
store.setdefault('templates', []).append(template) store.setdefault('template', []).append(template)
store.setdefault('context', ContextList()).append(copy(context)) store.setdefault('context', ContextList()).append(copy(context))
def encode_multipart(boundary, data): def encode_multipart(boundary, data):