There was an error while loading. Please reload this page.
1 parent 4b722b3 commit d69f1d7Copy full SHA for d69f1d7
docs/topics/class-based-views/index.txt
@@ -93,13 +93,13 @@ conversion to JSON once.
93
For example, a simple JSON mixin might look something like this::
94
95
import json
96
- from django import http
+ from django.http import HttpResponse
97
98
class JSONResponseMixin(object):
99
"""
100
A mixin that can be used to render a JSON response.
101
102
- reponse_class = HTTPResponse
+ response_class = HttpResponse
103
104
def render_to_response(self, context, **response_kwargs):
105
0 commit comments