diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/signals.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt index 1f0612b6ba..3917b52b96 100644 --- a/docs/ref/signals.txt +++ b/docs/ref/signals.txt @@ -477,20 +477,24 @@ setting_changed .. data:: django.test.signals.setting_changed :module: -Sent when some :ref:`settings are overridden <overriding-settings>` with the +This signal is sent when the value of a setting is changed through the :meth:`django.test.TestCase.setting` context manager or the :func:`django.test.utils.override_settings` decorator/context manager. +It's actually sent twice: when the new value is applied ("setup") and when the +original value is restored ("teardown"). + Arguments sent with this signal: ``sender`` The settings handler. ``setting`` - Same as sender + The name of the setting. ``value`` - The new setting value. + The value of the setting after the change. For settings that initially + don't exist, in the "teardown" phase, ``value`` is ``None``. template_rendered ----------------- |
