Skip to content

docs: django page_size #1440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/filter-sort.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,19 @@ for workbook in all_workbooks:
print(workbook.owner_id)
```

### Setting page size

Starting with version 0.32, you can set the page size for the request by using
the `page_size` keyword argument. The default page size is 100 if not provided.

```py
superstore_workbooks = server.workbooks.filter(name='Superstore', page_size=10)
# or
all_workbooks = server.workbooks.all(page_size=1000)
```



### Direction criteria - Django style

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