If the django model is made abstract, as shown below, is there a way to test the class to determine if it is abstract?
class MyModel(models.Model):
class Meta:
abstract = True
I would expect that I can learn MyModel.Meta.abstract, but according to the Django docs:
Django makes one adjustment for the Meta class of the abstract base class: before setting the Meta attribute, it sets abstract = False . This means that children of abstract base classes do not automatically become abstract classes.
Any ideas? Thanks!
source
share