From bd8bbc8c1a5971ce9cea325357234b119b91802a Mon Sep 17 00:00:00 2001 From: Clifford Gama Date: Mon, 13 Jan 2025 21:14:25 +0200 Subject: [PATCH] [5.1.x] Refs #36095 -- Doc'd that ManyToManyField.through supports lazy relationships. Backport of eb4ea9c3efca479b169bed88a5521c4cf47ed2a2 from main. --- docs/ref/models/fields.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 7937baf031..04359ad920 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -2005,6 +2005,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 ` 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 `.