#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:"8488074fe38edbea6c4ec822c59c7c45d0669a91" 8488074f]:
 {{{#!CommitTicketReference repository=""
 revision="8488074fe38edbea6c4ec822c59c7c45d0669a91"
 [5.1.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:8>
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/0107019518aa87ad-6895b0b1-fe08-4801-a804-c3330591459d-000000%40eu-central-1.amazonses.com.

Reply via email to