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: