#32466: Ticket #29138 breaks autocomplete for inherited models
-------------------------------------+-------------------------------------
     Reporter:  Dlis                 |                    Owner:  Johannes
                                     |  Maron
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.admin        |                  Version:  3.2
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  autocomplete         |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson <carlton.gibson@…>):

 In [changeset:"a8fef6daaf75cd24262d973b154fb6580efd99a4" a8fef6da]:
 {{{
 #!CommitTicketReference repository=""
 revision="a8fef6daaf75cd24262d973b154fb6580efd99a4"
 [3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for
 complex cases.

 In MTI or ForeignKey as primary key cases, it is required to fetch the
 attname
 from the field instance on the remote model in order to reliably resolve
 the
 to_field_name.

 Backport of ceb4b9ee68dffc6ab0398886f1758f15f037c472 from main Backport of
 03d0f12c823239812da21e5180aaa74dc6fd146e from main

 Co-authored-by: Johannes Maron <[email protected]>
 Co-authored-by: Mariusz Felisiak <[email protected]>
 Co-authored-by: Carlton Gibson <[email protected]>
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32466#comment:20>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/062.fd683803d1606815cd373dc5c41be410%40djangoproject.com.

Reply via email to