Add "direct link" support for master grids
This commit is contained in:
parent
cd466a64e5
commit
8264a69cec
4 changed files with 105 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue