From 1037a2742e39eac6777924725e2bf2e13447fa80 Mon Sep 17 00:00:00 2001 From: decore <278972894@qq.com> Date: Tue, 28 Jun 2016 10:15:42 +0800 Subject: [PATCH] Update pagination.md --- docs/api-guide/pagination.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/pagination.md b/docs/api-guide/pagination.md index 65ea2b3e6..0dd935ba3 100644 --- a/docs/api-guide/pagination.md +++ b/docs/api-guide/pagination.md @@ -47,7 +47,7 @@ You can then apply your new style to a view using the `.pagination_class` attrib class BillingRecordsView(generics.ListAPIView): queryset = Billing.objects.all() - serializer = BillingRecordsSerializer + serializer_class = BillingRecordsSerializer pagination_class = LargeResultsSetPagination Or apply the style globally, using the `DEFAULT_PAGINATION_CLASS` settings key. For example: