Re: [Django] #36197: `Model.relatedmanager.count()` fails for custom ManyToMany relationships with `through` definition (was: `Model.relatedmanager.count()` fails for custom ManyToMany relationships which don't use `id`)

4 views
Skip to first unread message

Django

unread,
Feb 17, 2025, 5:41:54 AM2/17/25
to django-...@googlegroups.com
#36197: `Model.relatedmanager.count()` fails for custom ManyToMany relationships
with `through` definition
-------------------------------------+-------------------------------------
Reporter: mfontana-elem | Owner: (none)
Type: Bug | Status: new
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by mfontana-elem):

* summary:
`Model.relatedmanager.count()` fails for custom ManyToMany
relationships which don't use `id`
=>
`Model.relatedmanager.count()` fails for custom ManyToMany
relationships with `through` definition

--
Ticket URL: <https://code.djangoproject.com/ticket/36197#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages