8000 docs: django page_size · tableau/server-client-python@1862243 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1862243

Browse files
committed
docs: django page_size
1 parent 7c62304 commit 1862243

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/filter-sort.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,19 @@ for workbook in all_workbooks:
104104
print(workbook.owner_id)
105105
```
106106

107+
### Setting page size
108+
109+
Starting with version 0.32, you can set the page size for the request by using
110+
the `page_size` keyword argument. The default page size is 100 if not provided.
111+
112+
```py
113+
superstore_workbooks = server.workbooks.filter(name='Superstore', page_size=10)
114+
# or
115+
all_workbooks = server.workbooks.all(page_size=1000)
116+
```
117+
118+
119+
107120
### Direction criteria - Django style
108121

109122
The field name can be input as normal for ascending or prefixed with `-` for descending.

0 commit comments

Comments
 (0)
0