summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorWilliam Schwartz <wkschwartz@gmail.com>2021-03-30 15:57:33 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-03-31 09:11:39 +0200
commita118564ae167fa80c2628b1d22292794af4c0341 (patch)
tree9f14c3614c89aa0cc913549783747d470cecd8b9 /docs
parentd67d48e923eafd8ab7f8cc21985584f9606d9808 (diff)
[3.2.x] Refs #32105 -- Moved ExceptionReporter template paths to properties.
Refs #32316. Backport of 7248afe12f40361870388ecdd7e0038eb0d58e47 from main
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/error-reporting.txt13
-rw-r--r--docs/releases/3.2.txt8
2 files changed, 11 insertions, 10 deletions
diff --git a/docs/howto/error-reporting.txt b/docs/howto/error-reporting.txt
index e2dbe7ca27..78bf81062d 100644
--- a/docs/howto/error-reporting.txt
+++ b/docs/howto/error-reporting.txt
@@ -329,17 +329,18 @@ Your custom reporter class needs to inherit from
.. versionadded:: 3.2
- A :class:`pathlib.Path` representing the absolute filesystem path to a
- template for rendering the HTML representation of the exception.
- Defaults to the Django provided template.
+ Property that returns a :class:`pathlib.Path` representing the absolute
+ filesystem path to a template for rendering the HTML representation of
+ the exception. Defaults to the Django provided template.
.. attribute:: text_template_path
.. versionadded:: 3.2
- A :class:`pathlib.Path` representing the absolute filesystem path to a
- template for rendering the plain-text representation of the exception.
- Defaults to the Django provided template.
+ Property that returns a :class:`pathlib.Path` representing the absolute
+ filesystem path to a template for rendering the plain-text
+ representation of the exception. Defaults to the Django provided
+ template.
.. method:: get_traceback_data()
diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt
index eebb500202..3ba8c36415 100644
--- a/docs/releases/3.2.txt
+++ b/docs/releases/3.2.txt
@@ -299,10 +299,10 @@ Decorators
Error Reporting
~~~~~~~~~~~~~~~
-* Custom :class:`~django.views.debug.ExceptionReporter` subclasses can now set
- the :attr:`~django.views.debug.ExceptionReporter.html_template_path` and
- :attr:`~django.views.debug.ExceptionReporter.text_template_path` class
- attributes to override the templates used to render exception reports.
+* Custom :class:`~django.views.debug.ExceptionReporter` subclasses can now
+ define the :attr:`~django.views.debug.ExceptionReporter.html_template_path`
+ and :attr:`~django.views.debug.ExceptionReporter.text_template_path`
+ properties to override the templates used to render exception reports.
File Uploads
~~~~~~~~~~~~