mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #24829 -- Allowed use of TemplateResponse in view error handlers.
This commit is contained in:
parent
64a4211aa8
commit
2f615b10e6
4 changed files with 44 additions and 0 deletions
|
@ -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
|
||||
^^^^^
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue