﻿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
15225	Using concrete model inheritance with OneToOneField(parent_link=True) seems to be ignored	Jeremy Dunck	nobody	"This seems to be because local_fields is always blank in these lines from django.db.models.base.ModelBase.__new__

{{{
        # Do the appropriate setup for any model parents.
        o2o_map = dict([(f.rel.to, f) for f in new_class._meta.local_fields
                if isinstance(f, OneToOneField)])
}}}

Which causes this elif branch to be taken:

{{{
                if base in o2o_map:
                    field = o2o_map[base]
                elif not is_proxy:
                    attr_name = '%s_ptr' % base._meta.module_name
                    field = OneToOneField(base, name=attr_name,
                            auto_created=True, parent_link=True)
                    new_class.add_to_class(attr_name, field)
}}}

This misses the point of parent_link.

I'll try to make a simple test case (for some value of ""simple""), but can anyone verify?  Kooky edge case, I know."		closed	Database layer (models, ORM)	1.2		invalid			Unreviewed	0	0	0	0	0	0
