- Fix issue #12
- Support paginating by multiple fields
- Adds Django 3.1 support
- Drop support for Django 1.11, 2.0 and 2.1
- Adds support for Django 2.2 and 3.0
-
Adds support for Django 1.11, 2.0 and 2.1. No changes were required to support these
-
Adds
serializers.page_key
andserializers.to_page_key
-
Adds previous page fetching
-
Support passing just
value
in caselookup_field
is a unique field -
Support for order ASC and DESC
-
Pagination is lazy now
-
Adds
has_previous
,next_objects_left
,prev_objects_left
,next_pages_left
,prev_pages_left
andprev_page
toSeekPage
-
Adds
paginate
, which is a shortcut forSeekPaginator(...).page(...)
-
Removed
objects_left
API, usenext_objects_left()
instead -
For those upgrading from 0.x, there are some backward incompatible changes. The following changes are required to get the old behaviour:
- Replace
lookup_field='myfield'
inSeekPaginator
bylookup_field='-myfield'
. This is because prefixing the field by-
makes the query in DESC order, instead of ASC. - Replace
page.next_page_pk()
call bypage.next_page()['pk']
. This is becausepage.next_page_pk()
was removed, and the new method returns a dict of{'myfield': ..., 'pk': ...}
- Replace
- Drops support for Django 1.5, 1.6 and 1.7
- Adds support for Django 1.8, 1.9 and 1.10