@classmethod
    def validate_model_fields(self, new_class):
        for f in new_class._meta.fields:
            if f.name in POLYMORPHIC_SPECIAL_Q_KWORDS:
                e = 'PolymorphicModel: "%s" - field name "%s" is not allowed in polymorphic models'
                raise AssertionError(e % (new_class.__name__, f.name))
check if all fields names are allowed (i.e. not in POLYMORPHIC_SPECIAL_Q_KWORDS)
dataset/ETHPy150Open chrisglass/django_polymorphic/polymorphic/base.py/PolymorphicModelBase.validate_model_fields