#34819: GenericForeignKey.get_prefetch_queryset()
-------------------------------------+-------------------------------------
     Reporter:  Richard Laager       |                    Owner:  Clifford
                                     |  Gama
         Type:  Bug                  |                   Status:  closed
    Component:                       |                  Version:  3.2
  contrib.contenttypes               |
     Severity:  Normal               |               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:"d5c19f9b327fccc1f707e10de648fe9d4cdacb9b" d5c19f9b]:
 {{{#!CommitTicketReference repository=""
 revision="d5c19f9b327fccc1f707e10de648fe9d4cdacb9b"
 Fixed #34819 -- Made GenericForeignKey prefetching use matching pk
 representations.

 Ensured that rel_obj_attr and instance_attr return matching (pk, cls)
 tuples
 in GenericForeignKey.get_prefetch_queryset(), preventing mismatches when
 prefetching related objects where pk and get_prep_value() differ. Using
 value_to_string() also makes this code compatible with composite primary
 keys.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/34819#comment:12>
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/01070195d1aa2633-f7c84575-ab69-451f-b425-3a7c22631c4e-000000%40eu-central-1.amazonses.com.

Reply via email to