aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/pagination.md
diff options
context:
space:
mode:
authorMark Aaron Shirley2013-05-08 22:39:48 -0700
committerMark Aaron Shirley2013-05-08 22:39:48 -0700
commite550740b3d07e9f89e89941ee6be1101c7770e9a (patch)
tree7e26d3e76479f16302e2fade1890c35fe3c1b445 /docs/api-guide/pagination.md
parent7e0a93f0eefead25f0e9b6615675f394af3a4ba0 (diff)
parent4ab7b8f257f9d3a1b35d34d0f90f0103b0cc6369 (diff)
downloaddjango-rest-framework-e550740b3d07e9f89e89941ee6be1101c7770e9a.tar.bz2
Merge remote-tracking branch 'upstream/master' into writable-nested-modelserializer
Conflicts: rest_framework/tests/relations_nested.py
Diffstat (limited to 'docs/api-guide/pagination.md')
-rw-r--r--docs/api-guide/pagination.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/api-guide/pagination.md b/docs/api-guide/pagination.md
index 13d4760a..912ce41b 100644
--- a/docs/api-guide/pagination.md
+++ b/docs/api-guide/pagination.md
@@ -93,7 +93,8 @@ The default pagination style may be set globally, using the `DEFAULT_PAGINATION_
You can also set the pagination style on a per-view basis, using the `ListAPIView` generic class-based view.
class PaginatedListView(ListAPIView):
- model = ExampleModel
+ queryset = ExampleModel.objects.all()
+ serializer_class = ExampleModelSerializer
paginate_by = 10
paginate_by_param = 'page_size'