summaryrefslogtreecommitdiff
path: root/docs/topics
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/topics
parent12d574407c466c7929e455cfcfef4c0ff564e465 (diff)
Fixed #27380 -- Added "raw" argument to m2m_changed signals.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/db/fixtures.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/topics/db/fixtures.txt b/docs/topics/db/fixtures.txt
index 6066d34f8e..9e91e0d845 100644
--- a/docs/topics/db/fixtures.txt
+++ b/docs/topics/db/fixtures.txt
@@ -118,8 +118,9 @@ How fixtures are saved to the database
When fixture files are processed, the data is saved to the database as is.
Model defined :meth:`~django.db.models.Model.save` methods are not called, and
-any :data:`~django.db.models.signals.pre_save` or
-:data:`~django.db.models.signals.post_save` signals will be called with
+any :data:`~django.db.models.signals.pre_save`,
+:data:`~django.db.models.signals.post_save`, or
+:data:`~django.db.models.signals.m2m_changed` signals will be called with
``raw=True`` since the instance only contains attributes that are local to the
model. You may, for example, want to disable handlers that access
related fields that aren't present during fixture loading and would otherwise
@@ -163,6 +164,10 @@ You could also write a decorator to encapsulate this logic::
Just be aware that this logic will disable the signals whenever fixtures are
deserialized, not just during :djadmin:`loaddata`.
+.. versionchanged:: 6.1
+
+ The ``raw`` argument was added to ``m2m_changed`` signals.
+
Compressed fixtures
===================