aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/pagination.md
diff options
context:
space:
mode:
authorTom Christie2013-05-07 05:08:28 -0700
committerTom Christie2013-05-07 05:08:28 -0700
commit5356af8651fccacf5524add33569dd84d9e78646 (patch)
tree8f7145c0a4cfeab61e1e523409b82091f44dfdbb /docs/api-guide/pagination.md
parent287ff43cdd85a5c2275205bf37e19dea3f69ad01 (diff)
parent0f00da848d9a8d25a0049231e9794da71a96662b (diff)
downloaddjango-rest-framework-5356af8651fccacf5524add33569dd84d9e78646.tar.bz2
Merge pull request #808 from tomchristie/2.3
2.3
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'