aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/pagination
diff options
context:
space:
mode:
authorTom Christie2015-03-23 11:34:01 +0000
committerTom Christie2015-03-23 11:34:01 +0000
commit5e96a1ddf17946595a22083b035f99418dd2cbd7 (patch)
tree6f77e244f775547635492bc9e6a2e019a54b2c2b /api-guide/pagination
parent09d51ea4e256ed99421dc52cd6b4626e7172b667 (diff)
downloaddjango-rest-framework-5e96a1ddf17946595a22083b035f99418dd2cbd7.tar.bz2
Update documentation
Diffstat (limited to 'api-guide/pagination')
-rw-r--r--api-guide/pagination/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/api-guide/pagination/index.html b/api-guide/pagination/index.html
index 6da6e135..b51d7610 100644
--- a/api-guide/pagination/index.html
+++ b/api-guide/pagination/index.html
@@ -589,7 +589,7 @@ class StandardResultsSetPagination(PageNumberPagination):
<p>The <code>CursorPagination</code> class includes a number of attributes that may be overridden to modify the pagination style.</p>
<p>To set these attributes you should override the <code>CursorPagination</code> class, and then enable your custom pagination class as above.</p>
<ul>
-<li><code>page_size</code> = A numeric value indicating the page size. If set, this overrides the <code>DEFAULT_PAGE_SIZE</code> setting. Defaults to the same value as the <code>DEFAULT_PAGE_SIZE</code> settings key.</li>
+<li><code>page_size</code> = A numeric value indicating the page size. If set, this overrides the <code>PAGE_SIZE</code> setting. Defaults to the same value as the <code>PAGE_SIZE</code> settings key.</li>
<li><code>cursor_query_param</code> = A string value indicating the name of the "cursor" query parameter. Defaults to <code>'cursor'</code>.</li>
<li><code>ordering</code> = This should be a string, or list of strings, indicating the field against which the cursor based pagination will be applied. For example: <code>ordering = 'slug'</code>. Defaults to <code>-created</code>. This value may also be overridden by using <code>OrderingFilter</code> on the view.</li>
<li><code>template</code> = The name of a template to use when rendering pagination controls in the browsable API. May be overridden to modify the rendering style, or set to <code>None</code> to disable HTML pagination controls completely. Defaults to <code>"rest_framework/pagination/previous_and_next.html"</code>.</li>