diff options
| author | Fabio Sangiovanni <sjh+github@sanjioh.org> | 2021-01-04 18:36:35 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-04 20:16:07 +0100 |
| commit | 2d6c9b97bc706aab1975f57e814461e90e389bb0 (patch) | |
| tree | 6e50e6cecef12fe444a22605fb25fc090caf574a /docs | |
| parent | b41d38ae26b1da9519a6cd765bc2f2ce7d355007 (diff) | |
Fixed #32310 -- Fixed note about reverse accessors for intermediate table for self-referential ManyToManyField.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/fields.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 605b8bd979..f9291d72d5 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1866,11 +1866,9 @@ that control how the relationship functions. .. note:: - Recursive relationships using an intermediary model and defined as - symmetrical (that is, with :attr:`symmetrical=True - <ManyToManyField.symmetrical>`, which is the default) can't determine - the reverse accessors names, as they would be the same. You need to set - a :attr:`~ForeignKey.related_name` to at least one of them. If you'd + Recursive relationships using an intermediary model can't determine the + reverse accessors names, as they would be the same. You need to set a + :attr:`~ForeignKey.related_name` to at least one of them. If you'd prefer Django not to create a backwards relation, set ``related_name`` to ``'+'``. |
