aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide
diff options
context:
space:
mode:
authorStephan Groß2012-11-15 12:06:43 +0100
committerStephan Groß2012-11-15 12:06:43 +0100
commit3ae203a0184d27318a8a828ce322b151ade0340f (patch)
treee8e927ad52ed0b6a145db9725dc0479bfe006d3b /docs/api-guide
parentb17a9818008cf3828adb896ae9be134fb63c5693 (diff)
downloaddjango-rest-framework-3ae203a0184d27318a8a828ce322b151ade0340f.tar.bz2
updated script to just use page_size_kwarg
Diffstat (limited to 'docs/api-guide')
-rw-r--r--docs/api-guide/generic-views.md3
-rw-r--r--docs/api-guide/settings.md8
2 files changed, 7 insertions, 4 deletions
diff --git a/docs/api-guide/generic-views.md b/docs/api-guide/generic-views.md
index 734a91e9..3346c70a 100644
--- a/docs/api-guide/generic-views.md
+++ b/docs/api-guide/generic-views.md
@@ -149,8 +149,7 @@ Should be mixed in with [MultipleObjectAPIView].
**Arguments**:
-* `allow_page_size_param` - Allows you to overwrite the global settings `ALLOW_PAGE_SIZE_PARAM` for a specific view.
-* `page_size_param` - Allows you to customize the page_size parameter. Default is `page_size`.
+* `page_size_kwarg` - Allows you to overwrite the global settings `PAGE_SIZE_KWARG` for a specific view. You can also turn it off for a specific view by setting it to `None`. Default is `page_size`.
## CreateModelMixin
diff --git a/docs/api-guide/settings.md b/docs/api-guide/settings.md
index 2f90369b..8fce9e4e 100644
--- a/docs/api-guide/settings.md
+++ b/docs/api-guide/settings.md
@@ -150,10 +150,14 @@ Default: `'accept'`
Default: `'format'`
-## ALLOW_PAGE_SIZE_PARAM
+## PAGE_SIZE_KWARG
Allows you to globally pass a page size parameter for an individual request.
-Default: `'True'`
+The name of the GET parameter of views which inherit ListModelMixin for requesting data with an individual page size.
+
+If the value if this setting is `None` the passing a page size is turned off by default.
+
+Default: `'page_size'`
[cite]: http://www.python.org/dev/peps/pep-0020/