Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Fixed error that was introduced in [15601] causing lots of te…

…st 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
  • Loading branch information...
commit a6114e1a1442e9d87c3fdb073a34b75092794d21 1 parent 31d0f2f
Luke Plant authored February 21, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/test/client.py
2  django/test/client.py
@@ -97,7 +97,7 @@ def store_rendered_templates(store, signal, sender, template, context, **kwargs)
97 97
     The context is copied so that it is an accurate representation at the time
98 98
     of rendering.
99 99
     """
100  
-    store.setdefault('templates', []).append(template)
  100
+    store.setdefault('template', []).append(template)
101 101
     store.setdefault('context', ContextList()).append(copy(context))
102 102
 
103 103
 def encode_multipart(boundary, data):

0 notes on commit a6114e1

Please sign in to comment.
Something went wrong with that request. Please try again.