mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #19031 -- Added a warning when using override_settings with 'DATABASES'
This commit is contained in:
parent
b82a2c4138
commit
66f3d57b79
6 changed files with 64 additions and 4 deletions
|
@ -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
|
||||
-----------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue