Fixed #19031 -- Added a warning when using override_settings with 'DATABASES'

This commit is contained in:
Joeri Bekker 2013-05-18 13:43:51 +02:00 committed by Tim Graham
parent b82a2c4138
commit 66f3d57b79
6 changed files with 64 additions and 4 deletions

View file

@ -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
-----------------