The recommended way to do what you are after is:
class AbstractBase(models.Model):
f1 = models.IntegerField()
class Meta:
abstract = True
class Base(AbstractBase):
pass
class Derived(AbstractBase):
f2 = models.IntegerField()
If you can't use the above way, then the wa
Hello!
Wouldn't it be great to be able to inherit django models like any other
python class? I.e not like the default multi-table inheritance.
"How would this differ from an abstract model" you may ask. Well, it is
sort of like an abstract model inheritance, except for the abstract part
where