Update pagination.md

This commit is contained in:
decore 2016-06-28 10:15:42 +08:00 committed by GitHub
parent 151a60b64b
commit 1037a2742e

View File

@ -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: