In django, I would like to reference the class whose method is being called, where the method itself is implemented in its abstract ancestor.
class AbstractFather(models.Model):
class Meta:
abstract = True
def my_method(self):
# >>> Here <<<
class Child(AbstractFather):
pass
I'm looking to do something like:
isinstance(instance, Child):
Of course I can't know within my_method which child Model was called a priori.