mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-10 19:57:15 +03:00
Test custom meta .setdefault()
This commit is contained in:
parent
e827b10e7b
commit
55dc65753e
|
@ -76,9 +76,9 @@ def test_django_objecttype_with_custom_meta():
|
|||
abstract = True
|
||||
|
||||
@classmethod
|
||||
def __init_subclass_with_meta__(cls, _meta=None, **options):
|
||||
_meta = ArticleTypeOptions(cls)
|
||||
super(ArticleType, cls).__init_subclass_with_meta__(_meta=_meta, **options)
|
||||
def __init_subclass_with_meta__(cls, **options):
|
||||
options.setdefault('_meta', ArticleTypeOptions(cls))
|
||||
super(ArticleType, cls).__init_subclass_with_meta__(**options)
|
||||
|
||||
class Article(ArticleType):
|
||||
class Meta:
|
||||
|
|
Loading…
Reference in New Issue
Block a user