#26502: Lookup of attribute 'id' on model inheritance models in InlineModelAdmin
fails when using fk_name of parent model
-------------------------------------+-------------------------------------
     Reporter:  Braintelligence      |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  contrib.admin        |                  Version:  1.8
     Severity:  Normal               |               Resolution:
     Keywords:  id, model            |             Triage Stage:
  inheritance, inherited model,      |  Unreviewed
  inline                             |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by timgraham):

 I think you need to use `person_ptr` in the `fields` list rather than
 `id`. I created a [https://github.com/django/django/pull/6452 PR] to add
 the list of possible fields to the `KeyError` message which would
 hopefully have helped you debug this. In this case, it adds "Choices are:
 DELETE, lastname, person_ptr, person_something, publisher."

--
Ticket URL: <https://code.djangoproject.com/ticket/26502#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.469bc3d8e3684508be5b4519201e8332%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to