Fix Python 2.7 super arguments

This commit is contained in:
mongkok 2018-02-03 03:23:10 +05:30
parent be4a6231ae
commit 3051374b46

View File

@ -78,7 +78,7 @@ def test_django_objecttype_with_custom_meta():
@classmethod
def __init_subclass_with_meta__(cls, _meta=None, **options):
_meta = ArticleTypeOptions(cls)
super().__init_subclass_with_meta__(_meta=_meta, **options)
super(ArticleType, cls).__init_subclass_with_meta__(_meta=_meta, **options)
class Article(ArticleType):
class Meta: