mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Fixed #20349 -- Moved setting_changed signal to django.core.signals.
This removes the need to load django.test when not testing.
This commit is contained in:
parent
c5c235cd4f
commit
5dddd79433
6 changed files with 15 additions and 4 deletions
|
|
@ -666,6 +666,13 @@ It's actually sent twice: when the new value is applied ("setup") and when the
|
|||
original value is restored ("teardown"). Use the ``enter`` argument to
|
||||
distinguish between the two.
|
||||
|
||||
You can also import this signal from ``django.core.signals`` to avoid importing
|
||||
from ``django.test`` in non-test situations.
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
The signal was moved to ``django.core.signals`` as described above.
|
||||
|
||||
Arguments sent with this signal:
|
||||
|
||||
``sender``
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue