aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/pagination.md
diff options
context:
space:
mode:
authorTom Christie2013-04-24 22:40:24 +0100
committerTom Christie2013-04-24 22:40:24 +0100
commitb94da2468cdda6b0ad491574d35097d0e336ea7f (patch)
treebfb05f85703a738918252c8968f9a460554cae3f /docs/api-guide/pagination.md
parent835d3f89d37b873b2ef96dc7d71922b035b07328 (diff)
downloaddjango-rest-framework-b94da2468cdda6b0ad491574d35097d0e336ea7f.tar.bz2
Various clean up and lots of docs
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'