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 a7c1d01 commit ce8fa7fCopy full SHA for ce8fa7f
graphene_django/types.py
@@ -1,5 +1,7 @@
1
+import six
2
from collections import OrderedDict
3
4
+from django.db.models import Model
5
from django.utils.functional import SimpleLazyObject
6
from graphene import Field
7
from graphene.relay import Connection, Node
@@ -11,6 +13,10 @@
11
13
from .utils import DJANGO_FILTER_INSTALLED, get_model_fields, is_valid_django_model
12
14
15
16
+if six.PY3:
17
+ from typing import Type
18
+
19
20
def construct_fields(model, registry, only_fields, exclude_fields):
21
_model_fields = get_model_fields(model)
22
0 commit comments