#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: assigned
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* owner: (none) => Simon Charette
* status: new => assigned
Comment:
I can work on that one.
We can't be systematically using `self.instance.pk`
[https://github.com/django/django/blob/0d1dd6bba0c18b7feb6caa5cbd8df80fbac54afd/django/db/models/fields/related_descriptors.py#L1175
here]
--
Ticket URL: <https://code.djangoproject.com/ticket/36197#comment:3>
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/010701951442ec5e-cd2ecbf4-7343-4d95-85fe-5f88b82dedaf-000000%40eu-central-1.amazonses.com.