Ticket #326 (closed defect: fixed)
problems with orm and multi-table inheritance
|Reported by:||bas@…||Owned by:||andrew|
I'm trying to do some data migration using model class (for example, Restaurant) that inherits from other non-abstract model (for example, Place) in a multi-table inheritance mode. In South migration file I do:
restaurants = orm.Restaurant.filter(field1='blabla')
If field1 belongs to Restaurant model then it works just fine. But if field1 belongs to Place then that line fails with:
django.core.exceptions.FieldError: Cannot resolve keyword 'field1' into field. Choices are: ...Restaurant only fields listed here...
It works perfectly in real Django orm world.
Let me know if you need me to attach a real example.