We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc86e4e commit 2fd3cb0Copy full SHA for 2fd3cb0
graphene_django/rest_framework/serializer_converter.py
@@ -1,10 +1,12 @@
1
-from functools import singledispatch
2
-
3
from django.core.exceptions import ImproperlyConfigured
4
from rest_framework import serializers
5
6
import graphene
7
+from ..utils import import_single_dispatch
+
8
+singledispatch = import_single_dispatch()
9
10
11
@singledispatch
12
def convert_serializer_field(field):
@@ -53,5 +55,3 @@ def convert_serializer_field_to_bool(field):
53
55
@required_if_input_and_required
54
56
def convert_serializer_field_to_float(field):
57
return graphene.Float
0 commit comments