mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-17 19:52:23 +03:00
Fix tests.
This commit is contained in:
parent
81df2bf244
commit
9b3344d5d9
|
@ -133,6 +133,7 @@ class DjangoConnectionField(ConnectionField):
|
|||
def resolve_connection(cls, connection, args, iterable, max_limit=None):
|
||||
iterable = maybe_queryset(iterable)
|
||||
|
||||
max_limit = max_limit or 0
|
||||
if isinstance(iterable, QuerySet):
|
||||
list_length = iterable.count()
|
||||
list_slice_length = max(max_limit, list_length)
|
||||
|
|
Loading…
Reference in New Issue
Block a user