From c3899248afdca91dc2740c5449a766230fd13506 Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Fri, 23 Jun 2017 14:17:18 +0100 Subject: [PATCH] Use six.with_metaclass to support python 2.7 --- graphene_django/rest_framework/mutation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphene_django/rest_framework/mutation.py b/graphene_django/rest_framework/mutation.py index c96caef..906f4aa 100644 --- a/graphene_django/rest_framework/mutation.py +++ b/graphene_django/rest_framework/mutation.py @@ -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 '