Skip to content

Commit 533ffb3

Browse files
committed
Fixed rst syntax in README and added more settings
1 parent 7e0e11e commit 533ffb3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ override ``settings.REST_FRAMEWORK``::
8888

8989
REST_FRAMEWORK = {
9090
'PAGINATE_BY': 10,
91+
'PAGINATE_BY_PARAM': 'page_size',
92+
'MAX_PAGINATE_BY': 100,
9193
'DEFAULT_PAGINATION_SERIALIZER_CLASS':
9294
'rest_framework_ember.pagination.EmberPaginationSerializer',
9395
'DEFAULT_PARSER_CLASSES': (
@@ -103,10 +105,10 @@ override ``settings.REST_FRAMEWORK``::
103105
}
104106

105107

106-
If `PAGINATE_BY` is set the renderer will return a ``meta`` object with
108+
If ``PAGINATE_BY`` is set the renderer will return a ``meta`` object with
107109
record count and the next and previous links. Django Rest Framework looks
108-
for the `page` GET parameter by default allowing you to make requests for
109-
subsets of the data with `this.store.find('identity', {page: 2});`.
110+
for the ``page`` GET parameter by default allowing you to make requests for
111+
subsets of the data with ``this.store.find('identity', {page: 2});``.
110112

111113

112114
resource_name property

0 commit comments

Comments
 (0)