mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-03 11:53:27 +03:00
Fixing bugs
This commit is contained in:
parent
f110f24681
commit
98bbf39123
|
@ -1,6 +1,7 @@
|
|||
from django.utils.translation import gettext_lazy
|
||||
|
||||
from ..utils import camelize, get_model_fields, has_permissions
|
||||
from graphene_django.utils.utils import has_permissions
|
||||
from ..utils import camelize, get_model_fields
|
||||
from .models import Film, Reporter
|
||||
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ class DjangoObjectType(ObjectType):
|
|||
def __set_as_nullable__(cls, field_permissions, model, registry):
|
||||
"""Set restricted fields as nullable"""
|
||||
django_fields = yank_fields_from_attrs(
|
||||
construct_fields(model, registry, field_permissions.keys(), ()),
|
||||
construct_fields(model, registry, field_permissions.keys(), (), True),
|
||||
_as=Field,
|
||||
)
|
||||
for name, field in django_fields.items():
|
||||
|
|
Loading…
Reference in New Issue
Block a user