Update graphene_django/fields.py

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>
This commit is contained in:
Jason Kraus 2019-10-18 13:43:33 -07:00 committed by GitHub
parent de4da4b15a
commit d176b63497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ class DjangoListField(Field):
if queryset is None:
# Default to Django Model queryset
# N.B. This happens if DjangoListField is used in the top level Query object
model = django_object_type._meta.model.objects
model_manager = django_object_type._meta.model.objects
queryset = maybe_queryset(django_object_type.get_queryset(model, info))
return queryset