﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26502	Lookup of attribute 'id' on model inheritance models in InlineModelAdmin fails	Waldemar Hamm	nobody	"Having two models, of which one inherits from another, for example:

{{{
class Person(models.Model):
    firstname = models.CharField(max_length=255, blank=True)
    lastname = models.CharField(max_length=255)

class Author(Person):
    publisher = models.CharField(max_length=255)
}}}

I can't access the id field like so:

{{{
class AuthorInline(admin.StackedInline):
    model = Author
    fields = ['id', 'lastname', 'publisher']

class SomethingAdmin(admin.ModelAdmin):
    resource_class = Something
    inlines = [ AuthorInline ]
    list_display = ('somethinga', 'somethingb')
}}}

I get a KeyError and it says:
""Key 'id' not found in 'AuthorForm'""

Using Author._meta.get_all_field_names() the field id is definitely in the model, though. Removing 'id' from the fields list makes everything work. 

Am I doing something wrong or is this a legit bug?"	Uncategorized	new	contrib.admin	1.8	Normal		id, model inheritance, inherited model, inline		Unreviewed	0	0	0	0	0	0
