Add "direct link" support for master grids

This commit is contained in:
Lance Edgar 2022-12-25 14:41:58 -06:00
parent cd466a64e5
commit 8264a69cec
4 changed files with 105 additions and 38 deletions

View file

@ -455,6 +455,10 @@ class MasterView(View):
'clicking_row_checks_box': self.clicking_row_checks_box,
'assume_local_times': self.has_local_times,
}
if self.sortable or self.pageable or self.filterable:
defaults['expose_direct_link'] = True
if 'main_actions' not in kwargs and 'more_actions' not in kwargs:
main, more = self.get_grid_actions()
defaults['main_actions'] = main