#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
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson <carlton.gibson@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"03d0f12c823239812da21e5180aaa74dc6fd146e" 03d0f12c]:
{{{
#!CommitTicketReference repository=""
revision="03d0f12c823239812da21e5180aaa74dc6fd146e"
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.
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:19>
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.557e89af3ad2a4f187274bbd03782339%40djangoproject.com.