Parcourir la source

Fixed typo in JSONResponseMixin example.

Gabriel Grant il y a 12 ans
Parent
commit
d69f1d71c4
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      docs/topics/class-based-views/index.txt

+ 2 - 2
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):
             """