Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.51 KB

CHANGES.md

File metadata and controls

52 lines (42 loc) · 1.51 KB

1.2.1

  • Fix issue #12

1.2.0

  • Support paginating by multiple fields
  • Adds Django 3.1 support

1.1.0

  • Drop support for Django 1.11, 2.0 and 2.1
  • Adds support for Django 2.2 and 3.0

1.0.0

  • Adds support for Django 1.11, 2.0 and 2.1. No changes were required to support these

  • Adds serializers.page_key and serializers.to_page_key

  • Adds previous page fetching

  • Support passing just value in case lookup_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 and prev_page to SeekPage

  • Adds paginate, which is a shortcut for SeekPaginator(...).page(...)

  • Removed objects_left API, use next_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' in SeekPaginator by lookup_field='-myfield'. This is because prefixing the field by - makes the query in DESC order, instead of ASC.
    • Replace page.next_page_pk() call by page.next_page()['pk']. This is because page.next_page_pk() was removed, and the new method returns a dict of {'myfield': ..., 'pk': ...}

0.2.0

  • Drops support for Django 1.5, 1.6 and 1.7
  • Adds support for Django 1.8, 1.9 and 1.10