fix: sort on frontend for appinfo package listing grid

This commit is contained in:
Lance Edgar 2024-08-19 11:56:46 -05:00
parent 0eeeb4bd35
commit f5661fe349

View file

@ -83,14 +83,15 @@ class AppInfoView(MasterView):
def configure_grid(self, g): def configure_grid(self, g):
super().configure_grid(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') g.set_sort_defaults('name')
# name
g.set_searchable('name') g.set_searchable('name')
g.sorters['version'] = g.make_simple_sorter('version', foldcase=True) # editable_project_location
g.sorters['editable_project_location'] = g.make_simple_sorter(
'editable_project_location', foldcase=True)
g.set_searchable('editable_project_location') g.set_searchable('editable_project_location')
def template_kwargs_index(self, **kwargs): def template_kwargs_index(self, **kwargs):