From 446968e8aec58ab00e9311a2aa9fa167a52c6ab4 Mon Sep 17 00:00:00 2001 From: Jocelin Hounon Date: Sun, 3 Sep 2023 21:12:28 -0500 Subject: [PATCH] fix typo --- starlette_admin/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starlette_admin/views.py b/starlette_admin/views.py index dc6bb87c..79d2b3c7 100644 --- a/starlette_admin/views.py +++ b/starlette_admin/views.py @@ -185,7 +185,7 @@ class BaseModelView(BaseView): sortable_fields: List of sortable fields. export_fields: List of fields to include in exports. fields_default_sort: Initial order (sort) to apply to the table. - Should be a sequence of field names or a tuple of (field name, sort direction) pairs. + Should be a sequence of field names or a tuple of (field name, sort direction). For example: `["title", ("created_at", False), ("price", True)]` sorts by `title` ascending, `created_at` ascending and `price` descending.