#36197: Model.relatedmanager.count() always 0 for custom ManyToMany relationships
with through model with to_fields
-------------------------------------+-------------------------------------
Reporter: mfontana-elem | Owner: Simon
| Charette
Type: Bug | Status: closed
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"c3a23aa02faa1cf1d32e43d66858e793cd9ecac4" c3a23aa]:
{{{#!CommitTicketReference repository=""
revision="c3a23aa02faa1cf1d32e43d66858e793cd9ecac4"
Fixed #36197 -- Fixed improper many-to-many count() and exists() for non-
pk to_field.
Regression in 66e47ac69a7e71cf32eee312d05668d8f1ba24bb.
Thanks mfontana-elem for the report and Sarah for the tests.
}}}
--
Ticket URL: <
https://code.djangoproject.com/ticket/36197#comment:6>