diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-04-22 18:17:16 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-04-22 18:17:16 +0000 |
| commit | c8092b840b4151724a6babdbeb84cf3138057c6a (patch) | |
| tree | f3aac95b4dd4eec96c2c0835a07b5845c3a0843e /docs | |
| parent | 13cfdb0d8b31997efbb0f413c69da304a5c73044 (diff) | |
Fixed #15008 -- Replaced all calls in the admin to render_to_response with TemplateResponses for easier customization. Thanks to Chris Adams for the initial patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index f97d4eb260..633c53f09a 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1064,6 +1064,13 @@ provided some extra mapping data that would not otherwise be available:: return super(MyModelAdmin, self).change_view(request, object_id, extra_context=my_context) +.. versionadded:: 1.4 + +These views now return :class:`~django.template.response.TemplateResponse` +instances which allow you to easily customize the response data before +rendering. For more details, see the +:doc:`TemplateResponse documentation </ref/template-response>`. + ``ModelAdmin`` media definitions -------------------------------- |
