Merge pull request #690 from bckohan/master

remove dead code
This commit is contained in:
Brian Kohan 2025-12-09 16:28:39 -08:00 committed by GitHub
commit 8332a35930
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,10 +53,6 @@ class PolymorphicModelBase(ModelBase):
"""
def __new__(self, model_name, bases, attrs, **kwargs):
# Workaround compatibility issue with six.with_metaclass() and custom Django model metaclasses:
if not attrs and model_name == "NewBase":
return super().__new__(self, model_name, bases, attrs, **kwargs)
# create new model
new_class = self.call_superclass_new_method(model_name, bases, attrs, **kwargs)