summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2025-11-07 10:17:22 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2025-12-17 18:37:18 +0100
commit4702b36120ea4c736d3f6b5595496f96e0021e46 (patch)
tree5fd19b32fe094aa46cf697880b81fd9bdf23e5c2 /docs/ref
parent12d574407c466c7929e455cfcfef4c0ff564e465 (diff)
Fixed #27380 -- Added "raw" argument to m2m_changed signals.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/signals.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt
index 44958dcef3..aecd7f9a44 100644
--- a/docs/ref/signals.txt
+++ b/docs/ref/signals.txt
@@ -303,6 +303,15 @@ Arguments sent with this signal:
``using``
The database alias being used.
+``raw``
+
+ .. versionadded:: 6.1
+
+ A boolean; ``True`` if the model is saved exactly as presented
+ (i.e. when loading a :ref:`fixture <fixtures-explanation>`). One should not
+ query/modify other records in the database as the database might not be in
+ a consistent state yet.
+
For example, if a ``Pizza`` can have multiple ``Topping`` objects, modeled
like this::
@@ -357,6 +366,8 @@ Argument Value
``pk_set`` ``{t.id}`` (since only ``Topping t`` was added to the relation)
``using`` ``"default"`` (since the default router sends writes here)
+
+``raw`` ``False`` (since it is not loaded from a fixture)
============== ============================================================
And if we would then do something like this:
@@ -387,6 +398,8 @@ Argument Value
relation)
``using`` ``"default"`` (since the default router sends writes here)
+
+``raw`` ``False`` (since it is not loaded from a fixture)
============== ============================================================
``class_prepared``