mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
committed by
Tim Graham
parent
c5c235cd4f
commit
5dddd79433
@@ -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``
|
||||
|
||||
Reference in New Issue
Block a user