Commit c1802db1 by Xavier Ordoquy

Merge pull request #4018 from tomviner/bugfix-cramer-cursors-link

remove trailing slash from cramer cursor link
parents f9304b6f 3e5a1397
...@@ -30,7 +30,7 @@ Note that as a result of this work a number of settings keys and generic view at ...@@ -30,7 +30,7 @@ Note that as a result of this work a number of settings keys and generic view at
Until now, there has only been a single built-in pagination style in REST framework. We now have page, limit/offset and cursor based schemes included by default. Until now, there has only been a single built-in pagination style in REST framework. We now have page, limit/offset and cursor based schemes included by default.
The cursor based pagination scheme is particularly smart, and is a better approach for clients iterating through large or frequently changing result sets. The scheme supports paging against non-unique indexes, by using both cursor and limit/offset information. It also allows for both forward and reverse cursor pagination. Much credit goes to David Cramer for [this blog post](http://cramer.io/2011/03/08/building-cursors-for-the-disqus-api/) on the subject. The cursor based pagination scheme is particularly smart, and is a better approach for clients iterating through large or frequently changing result sets. The scheme supports paging against non-unique indexes, by using both cursor and limit/offset information. It also allows for both forward and reverse cursor pagination. Much credit goes to David Cramer for [this blog post](http://cramer.io/2011/03/08/building-cursors-for-the-disqus-api) on the subject.
#### Pagination controls in the browsable API. #### Pagination controls in the browsable API.
......
...@@ -400,7 +400,7 @@ class CursorPagination(BasePagination): ...@@ -400,7 +400,7 @@ class CursorPagination(BasePagination):
""" """
The cursor pagination implementation is neccessarily complex. The cursor pagination implementation is neccessarily complex.
For an overview of the position/offset style we use, see this post: For an overview of the position/offset style we use, see this post:
http://cramer.io/2011/03/08/building-cursors-for-the-disqus-api/ http://cramer.io/2011/03/08/building-cursors-for-the-disqus-api
""" """
cursor_query_param = 'cursor' cursor_query_param = 'cursor'
page_size = api_settings.PAGE_SIZE page_size = api_settings.PAGE_SIZE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment