fix: sort on frontend for appinfo package listing grid
This commit is contained in:
parent
0eeeb4bd35
commit
f5661fe349
|
@ -83,14 +83,15 @@ class AppInfoView(MasterView):
|
|||
def configure_grid(self, g):
|
||||
super().configure_grid(g)
|
||||
|
||||
g.sorters['name'] = g.make_simple_sorter('name', foldcase=True)
|
||||
# sort on frontend
|
||||
g.sort_on_backend = False
|
||||
g.sort_multiple = False
|
||||
g.set_sort_defaults('name')
|
||||
|
||||
# name
|
||||
g.set_searchable('name')
|
||||
|
||||
g.sorters['version'] = g.make_simple_sorter('version', foldcase=True)
|
||||
|
||||
g.sorters['editable_project_location'] = g.make_simple_sorter(
|
||||
'editable_project_location', foldcase=True)
|
||||
# editable_project_location
|
||||
g.set_searchable('editable_project_location')
|
||||
|
||||
def template_kwargs_index(self, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue