Fix test for django30

This commit is contained in:
ddelange 2023-04-03 09:29:14 +02:00
parent c535420525
commit 8a16457a42
No known key found for this signature in database
GPG Key ID: AFC17B7BBC0301A6

View File

@ -953,6 +953,9 @@ class TestCursorPagination(CursorPaginationTestsMixin):
def filter(self, q): def filter(self, q):
q_args = dict(q.deconstruct()[1]) 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__gt = q_args.get('created__gt')
created__lt = q_args.get('created__lt') created__lt = q_args.get('created__lt')