diff options
| author | Clifford Gama <cliffygamy@gmail.com> | 2025-01-13 21:14:25 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-03-21 14:09:10 +0100 |
| commit | eb4ea9c3efca479b169bed88a5521c4cf47ed2a2 (patch) | |
| tree | 5f5614346ac8f0d8c35845640b81440b7c6ac75d /docs | |
| parent | 5adadf6e8c74ab14d432e9d682ca1914789386de (diff) | |
Refs #36095 -- Doc'd that ManyToManyField.through supports lazy relationships.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/fields.txt | 4 |
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>`. |
