1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

[5.1.x] Refs #36095 -- Doc'd that ManyToManyField.through supports lazy relationships.

Backport of eb4ea9c3efca479b169bed88a5521c4cf47ed2a2 from main.
This commit is contained in:
Clifford Gama 2025-01-13 21:14:25 +02:00 committed by Sarah Boyce
parent ab4bb5b2f9
commit bd8bbc8c1a

View File

@ -2005,6 +2005,10 @@ that control how the relationship functions.
the Django model that represents the intermediate table that you want to the Django model that represents the intermediate table that you want to
use. 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 The most common use for this option is when you want to associate
:ref:`extra data with a many-to-many relationship :ref:`extra data with a many-to-many relationship
<intermediary-manytomany>`. <intermediary-manytomany>`.