mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-14 06:04:23 +03:00
Issue #1207 : Backward Pagination not working correctly when using with last and before arguments
This commit is contained in:
parent
623d0f219e
commit
572c305704
|
@ -158,7 +158,8 @@ class DjangoConnectionField(ConnectionField):
|
|||
|
||||
if max_limit is not None and args.get("first", None) is None:
|
||||
if args.get("last", None) is not None:
|
||||
after = list_length - args["last"]
|
||||
if args.get("before", None) is None:
|
||||
after = list_length - args["last"]
|
||||
else:
|
||||
args["first"] = max_limit
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user