#31953 closed Uncategorized (invalid)

Model Inheritance and reverse relations

Reported by: Yash Jhunjhunwala Owned by: nobody
Component: Database layer (models, ORM) Version: 2.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Given the following structure

class ModelA(models.Model):
 pass

class ModelB(ModelA):
 pass

class ModelC(models.Model):
 model_a=models.OnetoOneField(ModelA)

class ModelD(ModelC):
 pass

This works

modelA.modelc

This works too

modelB.modelc

Is there a way to do:

modelB.modeld

Change History (1)

comment:1 Changed 10 months ago by Mariusz Felisiak

Component: UncategorizedDatabase layer (models, ORM)
Resolution: invalid
Status: newclosed

Please don't use Trac as a support channel. Closing per TicketClosingReasons/UseSupportChannels.

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