Skip to content

Commit c389924

Browse files
committed
Use six.with_metaclass to support python 2.7
1 parent 60b6ba8 commit c389924

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphene_django/rest_framework/mutation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections import OrderedDict
22
from functools import partial
33

4+
import six
45
import graphene
56
from graphene.types import Argument, Field
67
from graphene.types.mutation import Mutation, MutationMeta
@@ -98,7 +99,7 @@ def fields_for_serializer(options):
9899
return fields
99100

100101

101-
class SerializerMutation(Mutation, metaclass=SerializerMutationMeta):
102+
class SerializerMutation(six.with_metaclass(SerializerMutationMeta, Mutation)):
102103
errors = graphene.List(
103104
ErrorType,
104105
description='May contain more than one error for '

0 commit comments

Comments
 (0)