﻿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
28018	OneToOneField not working with inlineadmin	alex	nobody	"This class hierarchy doesn't work with inlineadmin:

class hierarchy:

models.py:
{{{
class d:
  pass
class a:
  d = models.OneToOneField(d, on_delete=models.CASCADE, related_name=""host"")
class b:
  pass
}}}
admin.py
{{{
class dInlineAdmin(admin.TabularInline):
    model = d

@admin.register(b)
class bSpecializedAdmin(admin.ModelAdmin):
    inlines = [
        dInlineAdmin,
    ]
}}}
Error message:
`<class 'x.admin.RequirementInlineAdmin'>: (admin.E202) 'x.Requirement' has no field named 'host'.`

'host' is the related_name"	Bug	closed	contrib.admin	1.10	Normal	invalid			Unreviewed	0	0	0	0	0	0
