diff options
| author | Stephan Groß | 2012-11-15 12:06:43 +0100 |
|---|---|---|
| committer | Stephan Groß | 2012-11-15 12:06:43 +0100 |
| commit | 3ae203a0184d27318a8a828ce322b151ade0340f (patch) | |
| tree | e8e927ad52ed0b6a145db9725dc0479bfe006d3b /docs | |
| parent | b17a9818008cf3828adb896ae9be134fb63c5693 (diff) | |
| download | django-rest-framework-3ae203a0184d27318a8a828ce322b151ade0340f.tar.bz2 | |
updated script to just use page_size_kwarg
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api-guide/generic-views.md | 3 | ||||
| -rw-r--r-- | docs/api-guide/settings.md | 8 | ||||
| -rw-r--r-- | docs/topics/release-notes.md | 4 |
3 files changed, 8 insertions, 7 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/ diff --git a/docs/topics/release-notes.md b/docs/topics/release-notes.md index f4a76c89..85c19f5b 100644 --- a/docs/topics/release-notes.md +++ b/docs/topics/release-notes.md @@ -7,9 +7,7 @@ ## Master * Support for `read_only_fields` on `ModelSerializer` classes. -* Support for `page_size` GET parameter in views which inherit ListModelMixin. -* Support for customizing `page_size` param via `page_size_param` attribute. -* Support for allowing `page_size` param globally (via `ALLOW_PAGE_SIZE_PARAM`) and for individual views (via `allow_page_size_param`) +* Support for individual page sizes per request via `page_size` GET parameter in views which inherit ListModelMixin. ## 2.1.2 |
