From d2840364e4360c2a45baf133e1f009457057dc08 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 14 Mar 2021 23:34:23 -0400 Subject: [PATCH] Fixed mixed imports. --- graphene_django/types.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/graphene_django/types.py b/graphene_django/types.py index f67960c..d272412 100644 --- a/graphene_django/types.py +++ b/graphene_django/types.py @@ -4,7 +4,6 @@ from typing import Type import graphene from django.db.models import Model -from graphene import Field from graphene.relay import Connection, Node from graphene.types.objecttype import ObjectType, ObjectTypeOptions from graphene.types.utils import yank_fields_from_attrs @@ -224,7 +223,7 @@ class DjangoObjectType(ObjectType): django_fields = yank_fields_from_attrs( construct_fields(model, registry, fields, exclude, convert_choices_to_enum), - _as=Field, + _as=graphene.Field, ) if use_connection is None and interfaces: