Fix import on python 2

This commit is contained in:
Patrick Arminio 2017-05-28 22:56:05 +02:00
parent dc86e4e9a1
commit 2fd3cb032c

View File

@ -1,10 +1,12 @@
from functools import singledispatch
from django.core.exceptions import ImproperlyConfigured
from rest_framework import serializers
import graphene
from ..utils import import_single_dispatch
singledispatch = import_single_dispatch()
@singledispatch
def convert_serializer_field(field):
@ -53,5 +55,3 @@ def convert_serializer_field_to_bool(field):
@required_if_input_and_required
def convert_serializer_field_to_float(field):
return graphene.Float