Merge pull request #4226 from waytai/patch-1

Update pagination.md
This commit is contained in:
José Padilla 2016-06-27 22:50:32 -04:00 committed by GitHub
commit 1359061789

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: