mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-11 08:42:32 +03:00
Fixed mixed imports.
This commit is contained in:
parent
82c7c11404
commit
d2840364e4
|
@ -4,7 +4,6 @@ from typing import Type
|
||||||
|
|
||||||
import graphene
|
import graphene
|
||||||
from django.db.models import Model
|
from django.db.models import Model
|
||||||
from graphene import Field
|
|
||||||
from graphene.relay import Connection, Node
|
from graphene.relay import Connection, Node
|
||||||
from graphene.types.objecttype import ObjectType, ObjectTypeOptions
|
from graphene.types.objecttype import ObjectType, ObjectTypeOptions
|
||||||
from graphene.types.utils import yank_fields_from_attrs
|
from graphene.types.utils import yank_fields_from_attrs
|
||||||
|
@ -224,7 +223,7 @@ class DjangoObjectType(ObjectType):
|
||||||
|
|
||||||
django_fields = yank_fields_from_attrs(
|
django_fields = yank_fields_from_attrs(
|
||||||
construct_fields(model, registry, fields, exclude, convert_choices_to_enum),
|
construct_fields(model, registry, fields, exclude, convert_choices_to_enum),
|
||||||
_as=Field,
|
_as=graphene.Field,
|
||||||
)
|
)
|
||||||
|
|
||||||
if use_connection is None and interfaces:
|
if use_connection is None and interfaces:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user