i' ve a Django model object. Is there any way to get to know (in code of course) where does it inherit from?
As an example:
class CDate(models.Models):
class Meta:
abstract = True
active = models.BooleanField()
class SWT(CDate):
name = models.CharField(max_length=32)
class RealObj(SWT):
code = models.CharField(max_length=32)
. In this case of a RealObj i' d like to get to know that it inhertis from SWT. How can i do that?
Thanks.