mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-25 19:14:11 +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 functools import partial
|
||||
|
||||
import six
|
||||
import graphene
|
||||
from graphene.types import Argument, Field
|
||||
from graphene.types.mutation import Mutation, MutationMeta
|
||||
|
@ -98,7 +99,7 @@ class SerializerMutationMeta(MutationMeta):
|
|||
return fields
|
||||
|
||||
|
||||
class SerializerMutation(Mutation, metaclass=SerializerMutationMeta):
|
||||
class SerializerMutation(six.with_metaclass(SerializerMutationMeta, Mutation)):
|
||||
errors = graphene.List(
|
||||
ErrorType,
|
||||
description='May contain more than one error for '
|
||||
|
|
Loading…
Reference in New Issue
Block a user