Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #282 from ptone/patch-1

Corrected docs on setup of JSONResponseMixin example
  • Loading branch information...
commit 0d1653395bc8b88bc6db3fb4d70a09cb6520ae4e 2 parents 1ad0517 + e437dd1
Aymeric Augustin authored August 18, 2012

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

  1. 6  docs/topics/class-based-views/index.txt
6  docs/topics/class-based-views/index.txt
@@ -119,11 +119,11 @@ For example, a simple JSON mixin might look something like this::
119 119
             # -- can be serialized as JSON.
120 120
             return json.dumps(context)
121 121
 
122  
-Now we mix this into the base view::
  122
+Now we mix this into the base TemplateView::
123 123
 
124  
-    from django.views.generic import View
  124
+    from django.views.generic import TemplateView
125 125
 
126  
-    class JSONView(JSONResponseMixin, View):
  126
+    class JSONView(JSONResponseMixin, TemplateView):
127 127
         pass
128 128
 
129 129
 Equally we could use our mixin with one of the generic views. We can make our

0 notes on commit 0d16533

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