summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-03-13 23:02:31 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-03-13 23:02:31 +0000
commit4b14546215ad4ef15f04e748e3b5f0da7b613b45 (patch)
treee9aa481e6f4d05bafecca4f1819ae416a2573d59 /docs/ref
parent2a0f4578efdda44325df9b32ff5f1790ca1e7752 (diff)
Fixed #17895 -- Made override_settings send the setting_changed signal both when a setting is overridden and when it's restored.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/signals.txt10
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
-----------------