1
0
mirror of https://github.com/django/django.git synced 2025-06-05 11:39:13 +00:00

Refs #36095 -- Doc'd that ManyToManyField.through supports lazy relationships.

This commit is contained in:
Clifford Gama 2025-01-13 21:14:25 +02:00 committed by Sarah Boyce
parent 5adadf6e8c
commit eb4ea9c3ef

View File

@ -2025,6 +2025,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>`.