Fixed #24829 -- Allowed use of TemplateResponse in view error handlers.

This commit is contained in:
ana-balica 2015-06-15 15:55:55 +03:00 committed by Tim Graham
parent 64a4211aa8
commit 2f615b10e6
4 changed files with 44 additions and 0 deletions

View file

@ -385,6 +385,10 @@ Requests and Responses
* The default 40x error views now accept a second positional parameter, the
exception that triggered the view.
* View error handlers now support
:class:`~django.template.response.TemplateResponse`, commonly used with
class-based views.
Tests
^^^^^