mirror of
https://github.com/django/django.git
synced 2025-11-20 11:36:04 +00:00
Fixed #14490 -- fixed a typo in the docs. Thanks to gremmie for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a6cafffbf7
commit
26e8e53cf4
1 changed files with 1 additions and 1 deletions
|
|
@ -476,7 +476,7 @@ specifically designed for rendering content to a HTML response using a
|
||||||
template. However, you can write your own mixins that perform
|
template. However, you can write your own mixins that perform
|
||||||
different rendering behavior.
|
different rendering behavior.
|
||||||
|
|
||||||
For example, you a simple JSON mixin might look something like this::
|
For example, a simple JSON mixin might look something like this::
|
||||||
|
|
||||||
class JSONResponseMixin(object):
|
class JSONResponseMixin(object):
|
||||||
def render_to_response(self, context):
|
def render_to_response(self, context):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue