diff options
| author | Gabriel Grant <g@briel.ca> | 2012-06-23 19:55:23 -0700 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2012-06-25 08:48:32 +0200 |
| commit | d69f1d71c4ee382542d09e80b18ef01feac5884c (patch) | |
| tree | 49ed6bc57da14ee6c10bd6a205f5a050cc572c99 /docs | |
| parent | 4b722b31e1778310ba0c1ed96fdacf99aa203dd2 (diff) | |
Fixed typo in JSONResponseMixin example.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/class-based-views/index.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/class-based-views/index.txt b/docs/topics/class-based-views/index.txt index bdf649da48..6c2848944c 100644 --- a/docs/topics/class-based-views/index.txt +++ b/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): """ |
