Skip to content

Commit d69f1d7

Browse files
gabrielgrantapollo13
authored andcommitted
Fixed typo in JSONResponseMixin example.
1 parent 4b722b3 commit d69f1d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/class-based-views/index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ conversion to JSON once.
9393
For example, a simple JSON mixin might look something like this::
9494

9595
import json
96-
from django import http
96+
from django.http import HttpResponse
9797

9898
class JSONResponseMixin(object):
9999
"""
100100
A mixin that can be used to render a JSON response.
101101
"""
102-
reponse_class = HTTPResponse
102+
response_class = HttpResponse
103103

104104
def render_to_response(self, context, **response_kwargs):
105105
"""

0 commit comments

Comments
 (0)