1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[5.2.x] Clarified pre_delete and post_delete's origin attributes.

Backport of 9d5d0e8135 from main.
This commit is contained in:
Clifford Gama
2025-03-31 11:52:48 +02:00
committed by Sarah Boyce
parent cc31b389a1
commit 0dba888d0c

View File

@@ -204,9 +204,8 @@ Arguments sent with this signal:
The database alias being used.
``origin``
The origin of the deletion being the instance of a ``Model`` or
``QuerySet`` class.
The ``Model`` or ``QuerySet`` instance from which the deletion originated,
that is, the instance whose ``delete()`` method was invoked.
``post_delete``
---------------
@@ -233,9 +232,8 @@ Arguments sent with this signal:
The database alias being used.
``origin``
The origin of the deletion being the instance of a ``Model`` or
``QuerySet`` class.
The ``Model`` or ``QuerySet`` instance from which the deletion originated,
that is, the instance whose ``delete()`` method was invoked.
``m2m_changed``
---------------