diff options
| author | Tom Christie | 2015-03-04 15:51:00 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-03-04 15:51:00 +0000 |
| commit | 18cc0230bff436da2f26b2b25034cece32c9f5d0 (patch) | |
| tree | f5648574b0d80b8d4b236d05110c59cc5d54eda6 /docs/tutorial | |
| parent | 5aa204e94f3173e8bc20439033a5d613625b1311 (diff) | |
| download | django-rest-framework-18cc0230bff436da2f26b2b25034cece32c9f5d0.tar.bz2 | |
Clean up pagination attributes
Diffstat (limited to 'docs/tutorial')
| -rw-r--r-- | docs/tutorial/5-relationships-and-hyperlinked-apis.md | 2 | ||||
| -rw-r--r-- | docs/tutorial/quickstart.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/5-relationships-and-hyperlinked-apis.md b/docs/tutorial/5-relationships-and-hyperlinked-apis.md index 740a4ce2..91cdd6f1 100644 --- a/docs/tutorial/5-relationships-and-hyperlinked-apis.md +++ b/docs/tutorial/5-relationships-and-hyperlinked-apis.md @@ -141,7 +141,7 @@ The list views for users and code snippets could end up returning quite a lot of We can change the default list style to use pagination, by modifying our `tutorial/settings.py` file slightly. Add the following setting: REST_FRAMEWORK = { - 'PAGINATE_BY': 10 + 'PAGE_SIZE': 10 } Note that settings in REST framework are all namespaced into a single dictionary setting, named 'REST_FRAMEWORK', which helps keep them well separated from your other project settings. diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index a4474c34..fe0ecbc7 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -123,7 +123,7 @@ We'd also like to set a few global settings. We'd like to turn on pagination, a REST_FRAMEWORK = { 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser',), - 'PAGINATE_BY': 10 + 'PAGE_SIZE': 10 } Okay, we're done. |
