Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Refs #15241 -- Further clarifications to the generic view migration d…

…ocs.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15481 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1ca9ceda599c52d9692eab82e17797e4006c93f2 1 parent 8c59905
Russell Keith-Magee authored February 09, 2011

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. 9  docs/topics/generic-views-migration.txt
9  docs/topics/generic-views-migration.txt
@@ -145,9 +145,14 @@ processors when rendering template content.
145 145
 
146 146
 Class-based views don't provide a ``context_processors`` argument.
147 147
 Instead, you subclass the view, overriding
148  
-:meth:`TemplateResponseMixin.render_to_response()`. For example::
  148
+:meth:`TemplateResponseMixin.render_to_response()`, and passing in
  149
+a context instance that has been instantiated with the processors
  150
+you want to use. For example::
149 151
 
150 152
     class MyListView(ListView):
151 153
         def render_to_response(self, context, **kwargs):
152 154
             return super(MyListView, self).render_to_response(
153  
-                    RequestContext(self.request, context, processors=[custom_processor]), **kwargs)
  155
+                    RequestContext(self.request,
  156
+                                   context,
  157
+                                   processors=[custom_processor]),
  158
+                    **kwargs)

0 notes on commit 1ca9ced

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