1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #24733 -- Passed the triggering exception to 40x error handlers

Thanks Tim Graham for the review.
This commit is contained in:
Claude Paroz
2015-04-21 21:54:00 +02:00
parent bd53db5eab
commit 70779d9c1c
9 changed files with 103 additions and 28 deletions

View File

@@ -269,6 +269,9 @@ Requests and Responses
* The debug view now shows details of chained exceptions on Python 3.
* The default 40x error views now accept a second positional parameter, the
exception that triggered the view.
Tests
^^^^^
@@ -520,6 +523,10 @@ Miscellaneous
Therefore, the ``@skipIfCustomUser`` decorator is no longer needed to
decorate tests in ``django.contrib.auth``.
* If you customized some :ref:`error handlers <error-views>`, the view
signatures with only one request parameter are deprecated. The views should
now also accept a second ``exception`` positional parameter.
.. removed-features-1.9:
Features removed in 1.9