Django multi-table inheritance, how to know which is the child class of a model?
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…… class accounttypeA(account): balance = models.float….. def addToBalance(self, value): self.balance += value class accounttypeB(account): balance = models.int…. # NOTE this def addToBalance(self, value): value = do_some_thing_with_value(value) # NOTE this self.balance += value Now, i want to add a value to an accounttype, but all i have is an account object, for instance acc=account.object.get(pk=29) . So, who is the child of acc ? Django