From 81df2bf244fcd6460e0da3a781afc0c0f29860cf Mon Sep 17 00:00:00 2001 From: Paul Craciunoiu Date: Wed, 10 Jun 2020 11:06:58 -0600 Subject: [PATCH] Update graphene_django/fields.py Co-authored-by: Jonathan Kim --- graphene_django/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/fields.py b/graphene_django/fields.py index 8b30f3c..9d727eb 100644 --- a/graphene_django/fields.py +++ b/graphene_django/fields.py @@ -138,7 +138,7 @@ class DjangoConnectionField(ConnectionField): list_slice_length = max(max_limit, list_length) else: list_length = len(iterable) - list_slice_length = max_limit or list_length + list_slice_length = max(max_limit, list_length) after = get_offset_with_default(args.get("after"), -1) + 1 list_slice_length += after