mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-18 04:20:34 +03:00
Use six.with_metaclass to support python 2.7
This commit is contained in:
parent
60b6ba82ba
commit
c3899248af
|
@ -1,6 +1,7 @@
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
|
import six
|
||||||
import graphene
|
import graphene
|
||||||
from graphene.types import Argument, Field
|
from graphene.types import Argument, Field
|
||||||
from graphene.types.mutation import Mutation, MutationMeta
|
from graphene.types.mutation import Mutation, MutationMeta
|
||||||
|
@ -98,7 +99,7 @@ class SerializerMutationMeta(MutationMeta):
|
||||||
return fields
|
return fields
|
||||||
|
|
||||||
|
|
||||||
class SerializerMutation(Mutation, metaclass=SerializerMutationMeta):
|
class SerializerMutation(six.with_metaclass(SerializerMutationMeta, Mutation)):
|
||||||
errors = graphene.List(
|
errors = graphene.List(
|
||||||
ErrorType,
|
ErrorType,
|
||||||
description='May contain more than one error for '
|
description='May contain more than one error for '
|
||||||
|
|
Loading…
Reference in New Issue
Block a user