mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #13251 -- Made pre/post_delete signals dispatch the origin.
This commit is contained in:
parent
f1905db6c0
commit
fa235004dd
9 changed files with 112 additions and 17 deletions
|
@ -195,6 +195,12 @@ Arguments sent with this signal:
|
|||
``using``
|
||||
The database alias being used.
|
||||
|
||||
``origin``
|
||||
.. versionadded:: 4.1
|
||||
|
||||
The origin of the deletion being the instance of a ``Model`` or
|
||||
``QuerySet`` class.
|
||||
|
||||
``post_delete``
|
||||
---------------
|
||||
|
||||
|
@ -219,6 +225,12 @@ Arguments sent with this signal:
|
|||
``using``
|
||||
The database alias being used.
|
||||
|
||||
``origin``
|
||||
.. versionadded:: 4.1
|
||||
|
||||
The origin of the deletion being the instance of a ``Model`` or
|
||||
``QuerySet`` class.
|
||||
|
||||
``m2m_changed``
|
||||
---------------
|
||||
|
||||
|
|
|
@ -249,7 +249,9 @@ Serialization
|
|||
Signals
|
||||
~~~~~~~
|
||||
|
||||
* ...
|
||||
* The :data:`~django.db.models.signals.pre_delete` and
|
||||
:data:`~django.db.models.signals.post_delete` signals now dispatch the
|
||||
``origin`` of the deletion.
|
||||
|
||||
Templates
|
||||
~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue