Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed typo in JSONResponseMixin example.

  • Loading branch information...
commit d69f1d71c4ee382542d09e80b18ef01feac5884c 1 parent 4b722b3
@gabrielgrant gabrielgrant authored apollo13 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/topics/class-based-views/index.txt
View
4 docs/topics/class-based-views/index.txt
@@ -93,13 +93,13 @@ conversion to JSON once.
For example, a simple JSON mixin might look something like this::
import json
- from django import http
+ from django.http import HttpResponse
class JSONResponseMixin(object):
"""
A mixin that can be used to render a JSON response.
"""
- reponse_class = HTTPResponse
+ response_class = HttpResponse
def render_to_response(self, context, **response_kwargs):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.