From ffc10edd7e79ce7aa77defd642c03974580feeb5 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 15 Dec 2015 10:24:49 -0500 Subject: [PATCH 1/2] Fix minor typo on Pagination documentation --- 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 da096bde7..4bc85d698 100644 --- a/docs/api-guide/pagination.md +++ b/docs/api-guide/pagination.md @@ -178,7 +178,7 @@ Proper usage of cursor pagination should have an ordering field that satisfies t * Should be a non-nullable value that can be coerced to a string. * The field should have a database index. -Using an ordering field that does not satisfy these constraints will generally still work, but you'll be loosing some of the benefits of cursor pagination. +Using an ordering field that does not satisfy these constraints will generally still work, but you'll be losing some of the benefits of cursor pagination. For more technical details on the implementation we use for cursor pagination, the ["Building cursors for the Disqus API"][disqus-cursor-api] blog post gives a good overview of the basic approach. From 8c0d736f234b4c82dbd662e1a7998d71f0ff4614 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 15 Dec 2015 10:28:23 -0500 Subject: [PATCH 2/2] Also fix usecases to use cases --- 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 4bc85d698..d6c80d93a 100644 --- a/docs/api-guide/pagination.md +++ b/docs/api-guide/pagination.md @@ -97,7 +97,7 @@ The `PageNumberPagination` class includes a number of attributes that may be ove To set these attributes you should override the `PageNumberPagination` class, and then enable your custom pagination class as above. -* `django_paginator_class` - The Django Paginator class to use. Default is `django.core.paginator.Paginator`, which should be fine for most usecases. +* `django_paginator_class` - The Django Paginator class to use. Default is `django.core.paginator.Paginator`, which should be fine for most use cases. * `page_size` - A numeric value indicating the page size. If set, this overrides the `PAGE_SIZE` setting. Defaults to the same value as the `PAGE_SIZE` settings key. * `page_query_param` - A string value indicating the name of the query parameter to use for the pagination control. * `page_size_query_param` - If set, this is a string value indicating the name of a query parameter that allows the client to set the page size on a per-request basis. Defaults to `None`, indicating that the client may not control the requested page size.