Collapse grid actions if there are only 2
This commit is contained in:
parent
9a3dbb9786
commit
2c7270954c
|
@ -745,7 +745,10 @@ class MasterView(View):
|
||||||
return defaults
|
return defaults
|
||||||
|
|
||||||
def get_grid_actions(self):
|
def get_grid_actions(self):
|
||||||
return self.get_main_actions(), self.get_more_actions()
|
main, more = self.get_main_actions(), self.get_more_actions()
|
||||||
|
if len(main) == 1 and len(more) == 1:
|
||||||
|
main, more = main + more, []
|
||||||
|
return main, more
|
||||||
|
|
||||||
def get_row_attrs(self, row, i):
|
def get_row_attrs(self, row, i):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue