Skip to content

Commit 16066f7

Browse files
committed
Add note about settings in README
1 parent ddf0324 commit 16066f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ The project provides examples of integration with Django and Jinja2 templates.
157157

158158
That's it!
159159

160+
## Settings
161+
162+
The library provides a few settings that you can define in the Django settings of your project:
163+
164+
- `DEFAULT_SORT_UP`, the HTML character to display the up symbol in the column headers (' ↑' by default).
165+
- `DEFAULT_SORT_DOWN`, the HTML character to display the down symbol in the column headers (' ↓' by default).
166+
- `SORTING_INVALID_FIELD_RAISES_404`, if true, a 404 response will be returned on invalid use of query parameters (false by default).
167+
160168
## Example
161169

162170
A test project is provided with the source code, the file `testproj/README.md`

0 commit comments

Comments
 (0)