#24432: Documentation: M2M through attribute is underspecified
-------------------------------+--------------------
Reporter: marfire | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
The
[[https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField.through|documentation]]
says that the automatically created `through` attribute has fields named
`<containing_model>_id` and `<other_model>_id`.
That can't be true when it is a M2M to `self`, since `containing_model`
and `other_model` are the same. A quick test shows that the fields in that
case are named `from_<model>_id` and `to_<model>_id`. The documentation
should cover this case.
--
Ticket URL: <https://code.djangoproject.com/ticket/24432>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.43c95e52002b1bd5049a615a3f09b55a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.