django/docs/ref
Raphaël Hertzog 9f4e031bd3 Fixed #25761 -- Added __cause__.__traceback__ to reraised exceptions.
When Django reraises an exception, it sets the __cause__ attribute even
in Python 2, mimicking Python's 3 behavior for "raise Foo from Bar".
However, Python 3 also ensures that all exceptions have a __traceback__
attribute and thus the "traceback2" Python 2 module (backport of Python
3's "traceback" module) relies on the fact that whenever you have a
__cause__ attribute, the recorded exception also has a __traceback__
attribute.

This is breaking testtools which is using traceback2 (see
https://github.com/testing-cabal/testtools/issues/162).

This commit fixes this inconsistency by ensuring that Django sets
the __traceback__ attribute on any exception stored in a __cause__
attribute of a reraised exception.
2015-12-03 16:31:50 -05:00
..
class-based-views Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
contrib Refs #25659 -- Added missing docs for Difference/Intersection/SymDifference functions. 2015-12-03 12:59:01 -05:00
files Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
forms Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
models Fixed typo in docs/ref/models/instances.txt 2015-12-03 12:55:32 -05:00
templates Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
applications.txt Refs #24971, #25356 -- Clarified how apps.py works in 1.9 release notes. 2015-11-17 19:32:32 -05:00
checks.txt Revert "Fixed #25417 -- Added a field check for invalid default values." 2015-10-27 11:02:35 -04:00
clickjacking.txt Updated various links in docs 2015-08-08 13:57:15 +02:00
csrf.txt Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
databases.txt Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
django-admin.txt Fixed man page by ensuring ".pot" doesn't render unescaped. 2015-11-25 17:20:18 -05:00
exceptions.txt Fixed #25761 -- Added __cause__.__traceback__ to reraised exceptions. 2015-12-03 16:31:50 -05:00
index.txt Moved CSRF docs out of contrib. 2014-11-03 07:47:39 -05:00
middleware.txt Removed versionadded/changed annotations for 1.8. 2015-09-23 19:31:11 -04:00
migration-operations.txt Fixed typo in docs/ref/migration-operations.txt. 2015-11-14 17:19:45 -05:00
request-response.txt Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
schema-editor.txt Fixed #22603 -- Reorganized classes in django.db.backends. 2015-01-14 14:16:20 -05:00
settings.txt Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
signals.txt Removed versionadded/changed annotations for 1.8. 2015-09-23 19:31:11 -04:00
template-response.txt Removed versionadded/changed annotations for 1.8. 2015-09-23 19:31:11 -04:00
unicode.txt Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
urlresolvers.txt Fixed #25473 -- Changed underscores in url() names to dashes in docs. 2015-11-07 21:58:45 +01:00
urls.txt Removed versionadded/changed annotations for 1.8. 2015-09-23 19:31:11 -04:00
utils.txt Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
validators.txt Fixed #25755 -- Unified spelling of "website". 2015-11-16 06:44:14 -05:00
views.txt Fixed #24733 -- Passed the triggering exception to 40x error handlers 2015-05-11 22:02:14 +02:00