Add custom default grid row size for Trainwreck items
seems like 100 rows is way more useful for this one
This commit is contained in:
parent
cbdbcb6df9
commit
e2b22221c4
|
@ -87,6 +87,7 @@ class MasterView(View):
|
|||
rows_deletable = False
|
||||
rows_deletable_speedbump = False
|
||||
rows_bulk_deletable = False
|
||||
rows_default_pagesize = 20
|
||||
|
||||
mobile_rows_viewable = False
|
||||
|
||||
|
@ -527,6 +528,7 @@ class MasterView(View):
|
|||
'filterable': self.rows_filterable,
|
||||
'sortable': self.rows_sortable,
|
||||
'pageable': True,
|
||||
'default_pagesize': self.rows_default_pagesize,
|
||||
'row_attrs': self.row_grid_row_attrs,
|
||||
'model_title': self.get_row_model_title(),
|
||||
'model_title_plural': self.get_row_model_title_plural(),
|
||||
|
|
|
@ -51,6 +51,7 @@ class TransactionView(MasterView):
|
|||
|
||||
has_rows = True
|
||||
# model_row_class = trainwreck.TransactionItem
|
||||
rows_default_pagesize = 100
|
||||
|
||||
def _preconfigure_grid(self, g):
|
||||
g.filters['receipt_number'].default_active = True
|
||||
|
|
Loading…
Reference in a new issue