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.
* needs_docs: => 0
* needs_better_patch: => 0
* type: Bug => Cleanup/optimization
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:1>
* keywords: => afraid-to-commit
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:2>
* status: new => assigned
* owner: nobody => Oxylo
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:3>
* status: assigned => new
* owner: Oxylo =>
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:4>
* owner: => fdh
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:5>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/4269 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:6>
* stage: Accepted => Ready for checkin
Comment:
Looks good to me!
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b9b8411129efe13642cef1fc6bbfc62bed717352"]:
{{{
#!CommitTicketReference repository=""
revision="b9b8411129efe13642cef1fc6bbfc62bed717352"
Fixed #24432 -- Added docs for ManyToManyFields that reside in and refer
to the same model.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"9853844ed3d3d25954205ce1b53962b57fef3d5e"]:
{{{
#!CommitTicketReference repository=""
revision="9853844ed3d3d25954205ce1b53962b57fef3d5e"
[1.8.x] Fixed #24432 -- Added docs for ManyToManyFields that reside in and
refer to the same model.
Backport of b9b8411129efe13642cef1fc6bbfc62bed717352 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:9>
Comment (by Tim Graham <timograham@…>):
In [changeset:"7a08c966ac45a77e6a41fc1cfa1bdbca02dcb1ff"]:
{{{
#!CommitTicketReference repository=""
revision="7a08c966ac45a77e6a41fc1cfa1bdbca02dcb1ff"
[1.7.x] Fixed #24432 -- Added docs for ManyToManyFields that reside in and
refer to the same model.
Backport of b9b8411129efe13642cef1fc6bbfc62bed717352 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24432#comment:10>