summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorJoeri Bekker <joeri@maykinmedia.nl>2013-05-18 13:43:51 +0200
committerTim Graham <timograham@gmail.com>2013-07-12 07:10:18 -0400
commit66f3d57b79eee0381c29ee4c76582d6b182bfad9 (patch)
tree91bce78a5801f56075a9f2845fb0438f7c869fca /docs/ref
parentb82a2c41387648f81387b1e03371331db3630269 (diff)
Fixed #19031 -- Added a warning when using override_settings with 'DATABASES'
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/signals.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt
index 0253832b8d..d4f261cadb 100644
--- a/docs/ref/signals.txt
+++ b/docs/ref/signals.txt
@@ -553,7 +553,8 @@ This signal is sent when the value of a setting is changed through 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").
+original value is restored ("teardown"). Use the ``enter`` argument to
+distinguish between the two.
Arguments sent with this signal:
@@ -567,6 +568,11 @@ Arguments sent with this signal:
The value of the setting after the change. For settings that initially
don't exist, in the "teardown" phase, ``value`` is ``None``.
+``enter``
+ .. versionadded:: 1.7
+
+ A boolean; ``True`` if the setting is applied, ``False`` if restored.
+
template_rendered
-----------------