summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-18 01:30:10 -0700
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-18 01:30:10 -0700
commit0d1653395bc8b88bc6db3fb4d70a09cb6520ae4e (patch)
tree63b25e5c7451c065992cc1e87970d2a6e937a762 /docs
parent1ad05172cb5e2fafe85540e2525114843c693955 (diff)
parente437dd1d6be5fdc3a7acf7abcf97b922e628313b (diff)
Merge pull request #282 from ptone/patch-1
Corrected docs on setup of JSONResponseMixin example
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/class-based-views/index.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/class-based-views/index.txt b/docs/topics/class-based-views/index.txt
index 1ac70e6938..c2900ecc01 100644
--- a/docs/topics/class-based-views/index.txt
+++ b/docs/topics/class-based-views/index.txt
@@ -119,11 +119,11 @@ For example, a simple JSON mixin might look something like this::
# -- can be serialized as JSON.
return json.dumps(context)
-Now we mix this into the base view::
+Now we mix this into the base TemplateView::
- from django.views.generic import View
+ from django.views.generic import TemplateView
- class JSONView(JSONResponseMixin, View):
+ class JSONView(JSONResponseMixin, TemplateView):
pass
Equally we could use our mixin with one of the generic views. We can make our