mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
fix tests on python3
This commit is contained in:
parent
692893cda8
commit
bacc29fb96
|
@ -483,7 +483,7 @@ class TestCursorPagination:
|
||||||
|
|
||||||
class MockQuerySet(object):
|
class MockQuerySet(object):
|
||||||
def __init__(self, items):
|
def __init__(self, items):
|
||||||
self.items = items
|
self.items = list(items)
|
||||||
|
|
||||||
def filter(self, created__gt=None, created__lt=None):
|
def filter(self, created__gt=None, created__lt=None):
|
||||||
if created__gt is not None:
|
if created__gt is not None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user