Fixed #15885 -- Update auth view docs re: TemplateResponse. Thanks prestontimmons.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16111 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Simon Meers 2011-04-28 00:26:31 +00:00
parent 6d98cda03c
commit e5cf560783
1 changed files with 10 additions and 0 deletions

View File

@ -863,6 +863,16 @@ The login_required decorator
.. _forms documentation: ../forms/ .. _forms documentation: ../forms/
.. _site framework docs: ../sites/ .. _site framework docs: ../sites/
.. versionadded:: 1.4
The :func:`~views.login` view and the :ref:`other-built-in-views` now all
return a :class:`~django.template.response.TemplateResponse` instance,
which allows you to easily customize the response data before rendering.
For more details, see the
:doc:`TemplateResponse documentation </ref/template-response>`.
.. _other-built-in-views:
Other built-in views Other built-in views
-------------------- --------------------