Opened 4 years ago
Closed 4 years ago
#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 by , 4 years ago
Component: | Uncategorized → Database layer (models, ORM) |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Please don't use Trac as a support channel. Closing per TicketClosingReasons/UseSupportChannels.