Fixes filtering in nested nodes.

This commit is contained in:
Pablo Chinea 2016-12-29 15:40:12 +00:00
parent 4246ceaa85
commit b26f914b54

View File

@ -49,6 +49,7 @@ class DjangoConnectionField(ConnectionField):
iterable = default_manager
iterable = maybe_queryset(iterable)
if isinstance(iterable, QuerySet):
iterable &= maybe_queryset(default_manager)
_len = iterable.count()
else:
_len = len(iterable)