class a(models.Model):
name = #получение имени класса
class Meta:
abstract = True
class b(a):
v = 220
x_b = b()
print(b.name)
class a(models.Model):
@property
def name(self):
return self.__class__.__name__ # whatever
class Meta:
abstract = True
class b(a):
v = 220
x_b = b()
print(b.name)