#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
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):
In [changeset:"6b8a6e1251e57b7bfee1ab6880171376a3a1a394" 6b8a6e1]:
{{{#!CommitTicketReference repository=""
revision="6b8a6e1251e57b7bfee1ab6880171376a3a1a394"
[5.2.x] 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.
Backport of c3a23aa02faa1cf1d32e43d66858e793cd9ecac4 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36197#comment:7>
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 visit
https://groups.google.com/d/msgid/django-updates/0107019518a974cf-8e0e4511-fa76-48de-b906-ac2e82f79d58-000000%40eu-central-1.amazonses.com.