I\'m having a problem with multi-table inheritance in django.
Let’s make an example with bank accounts.
class account(models.Model): name = models……
You can use hasattr() method like:
hasattr()
if hasattr(account, 'accounttypea'): account.accounttypea. = do something here.... elif hasattr(account, 'accounttypeb'): account.accounttypeb. = do something here...
It's not so DRY but works. :)