Kaydet (Commit) d69f1d71 authored tarafından Gabriel Grant's avatar Gabriel Grant Kaydeden (comit) Florian Apolloner

Fixed typo in JSONResponseMixin example.

üst 4b722b31
......@@ -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):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment