summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Gama <cliffygamy@gmail.com>2025-01-13 21:14:25 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-03-21 14:10:09 +0100
commit61535d2228bc1dec5d843793f1c1cfe27a784acc (patch)
tree079eee7ac20a2021fae07151091b0495799d12c9
parent321a5651a3928a70127b510b6aa9ea92dc8c721a (diff)
[5.2.x] Refs #36095 -- Doc'd that ManyToManyField.through supports lazy relationships.
Backport of eb4ea9c3efca479b169bed88a5521c4cf47ed2a2 from main.
-rw-r--r--docs/ref/models/fields.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 6d4ca657fc..0456c0a064 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -2025,6 +2025,10 @@ that control how the relationship functions.
the Django model that represents the intermediate table that you want to
use.
+ The ``through`` model can be specified using either the model class
+ directly or a :ref:`lazy reference <lazy-relationships>` to the model
+ class.
+
The most common use for this option is when you want to associate
:ref:`extra data with a many-to-many relationship
<intermediary-manytomany>`.