#32466: Closed ticket #29138 breaks autocomplete for inherited models
-------------------------------------+-------------------------------------
     Reporter:  dlis                 |                    Owner:  Johannes
                                     |  Maron
         Type:  Bug                  |                   Status:  new
    Component:  contrib.admin        |                  Version:  3.2
     Severity:  Release blocker      |               Resolution:
     Keywords:  autocomplete         |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by dlis):

 Yes, I've just checked that replacing `to_field_name =
 getattr(source_field.remote_field, 'field_name', 'pk')` with
 `to_field_name = getattr(source_field.remote_field, 'field_name', 'id')`
 solves the autocompleting, but it would be better to get the name of pk-
 field for the case of custom pk.

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

Reply via email to