#31303: Invalid documentation regarding m2m symmetrical with intermediate table
-------------------------------------+-------------------------------------
Reporter: Matheus | Owner: nobody
Cunha Motta |
Type: | Status: new
Uncategorized |
Component: | Version: 3.0
Documentation | Keywords: m2m symmetrical to
Severity: Normal | self
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The "Extra fields on many-to-many relationships" section of the
documentation (link:
https://docs.djangoproject.com/en/3.0/topics/db/models/#extra-fields-on-
many-to-many-relationships) mentions this:
"When defining a many-to-many relationship from a model to itself, using
an intermediary model, you must use symmetrical=False (see the model field
reference)."
Which I believe is wrong, i.e. you can set it to symmetrical=True.
According to version 3.0 release notes: "Allowed symmetrical intermediate
table for self-referential ManyToManyField.". Also according to model
field reference (link:
https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.ManyToManyField.symmetrical).
So I would suggest removing that item from the ul.
--
Ticket URL: <https://code.djangoproject.com/ticket/31303>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/056.6140b20a8610febe7a6ddcf4334f4e87%40djangoproject.com.