[enhancement] Allow Subclassing Models in ORM
|Reported by:||Owned by:||Adrian Holovaty|
|Component:||Database layer (models, ORM)||Version:||0.96|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The ORM is following subclassed models to their base classes.
In theory, this would create the new table (based on all of the old models structure) with syncdb, which it does. You would then be able to access this new model just like the old one, but the data would be in the new table.
However, it is not doing so, it is accessing data from the "Spell" table in this example, when calling any of the ORM functions for TmpSpell
Change History (3)
comment:1 Changed 9 years ago by
|Patch needs improvement:||unset|
|Status:||new → closed|
comment:2 Changed 9 years ago by
|Status:||closed → reopened|
|Summary:||Subclassing Models ORM issues → [enhancement] Allow Subclassing Models in ORM|