mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-09-17 09:42:29 +03:00
Fix test for django30
This commit is contained in:
parent
c535420525
commit
8a16457a42
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user