Opened 11 years ago

Closed 11 years ago

#20883 closed Bug (fixed)

Explicit OneToOneField for multi-table inheritance are not discovered in abstract classes.

Reported by: loic84 Owned by: loic84
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The following example doesn't work:

class Place(models.Model):
	pass

class AbstractRestaurant(models.Model):
	parent = models.OneToOneField(Place, parent_link=True)

class Pizzeria(AbstractRestaurant):
	pass

class Trattoria(AbstractRestaurant):
	pass

Change History (3)

comment:1 by loic84, 11 years ago

Has patch: set
Owner: changed from nobody to loic84
Status: newassigned

comment:2 by Tim Graham, 11 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Anssi Kääriäinen <akaariai@…>, 11 years ago

Resolution: fixed
Status: assignedclosed

In 163a34ce4bc1086b346a52c7271f48d2c207f710:

Fixed #20883 -- Made model inheritance find parent links in abstract parents

Note: See TracTickets for help on using tickets.
Back to Top