Skip to content

Commit

Permalink
[3.0.x] Fixed #31303 -- Removed outdated note about symmetrical inter…
Browse files Browse the repository at this point in the history
…mediate table for self-referential ManyToManyField.

Follow up to 87b1ad6.

Backport of 0352a44 from master
  • Loading branch information
matheuscunhamotta authored and felixxm committed Feb 24, 2020
1 parent 80e6639 commit 0193a16
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/topics/db/models.txt
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,6 @@ There are a few restrictions on the intermediate model:
must also specify ``through_fields`` as above, or a validation error
will be raised.

* When defining a many-to-many relationship from a model to
itself, using an intermediary model, you *must* use
:attr:`symmetrical=False <ManyToManyField.symmetrical>` (see
:ref:`the model field reference <manytomany-arguments>`).

Now that you have set up your :class:`~django.db.models.ManyToManyField` to use
your intermediary model (``Membership``, in this case), you're ready to start
creating some many-to-many relationships. You do this by creating instances of
Expand Down

0 comments on commit 0193a16

Please sign in to comment.