From 8a16457a428a2a949aec0cc3b3afc5a89fb0b84f Mon Sep 17 00:00:00 2001 From: ddelange <14880945+ddelange@users.noreply.github.com> Date: Mon, 3 Apr 2023 09:29:14 +0200 Subject: [PATCH] Fix test for django30 --- tests/test_pagination.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_pagination.py b/tests/test_pagination.py index b7633537e..8f9b20a0d 100644 --- a/tests/test_pagination.py +++ b/tests/test_pagination.py @@ -953,6 +953,9 @@ class TestCursorPagination(CursorPaginationTestsMixin): def filter(self, q): q_args = dict(q.deconstruct()[1]) + if not q_args: + # django 3.0.x artifact + q_args = dict(q.deconstruct()[2]) created__gt = q_args.get('created__gt') created__lt = q_args.get('created__lt')