﻿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
29691	Support ForeignKey based model inheritance	James Pic	nobody	"Currently, a model inheriting another will have a 1:1 relation with an automatically managed OneToOneField. This means a parent model instance may only have one child model instance. However, sometimes it may be interresting to have several child model instances for one parent model instance.

For example, creating a new child model with the same parent results in an error like:

       django.db.utils.IntegrityError: UNIQUE constraint failed: djcall_call.callable_ptr_id

But overriding the parent field with a ForeignKey is not accepted:

      django.core.exceptions.FieldError: Auto-generated field 'callable_ptr' in class 'Call' for parent_link to base class 'Callable' clashes with declared field of the same name.

Can we perhaps add an exception (not Exception!) for child models that override the automatic ptr field that is a OneToOneField, with a ForeignKey ?

Thanks"	New feature	new	Database layer (models, ORM)	2.1	Normal			James Pic	Unreviewed	0	0	0	0	0	0
