Add support for bulk-delete of Pricing Batches
This commit is contained in:
parent
38d623bcf9
commit
cf8df76788
3 changed files with 13 additions and 3 deletions
|
@ -138,8 +138,10 @@ class BatchMasterView(MasterView):
|
|||
g.filters['executed'].default_active = True
|
||||
g.filters['executed'].default_verb = 'is_null'
|
||||
|
||||
g.sorters['created_by'] = g.make_sorter(model.User.username)
|
||||
g.sorters['executed_by'] = g.make_sorter(model.User.username)
|
||||
# TODO: in some cases grid has no sorters yet..e.g. when building query for bulk-delete
|
||||
if hasattr(g, 'sorters'):
|
||||
g.sorters['created_by'] = g.make_sorter(model.User.username)
|
||||
g.sorters['executed_by'] = g.make_sorter(model.User.username)
|
||||
|
||||
g.default_sortkey = 'created'
|
||||
g.default_sortdir = 'desc'
|
||||
|
|
|
@ -44,6 +44,7 @@ class PricingBatchView(BatchMasterView):
|
|||
url_prefix = '/batches/pricing'
|
||||
creatable = False
|
||||
rows_editable = True
|
||||
bulk_deletable = True
|
||||
|
||||
def configure_fieldset(self, fs):
|
||||
fs.configure(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue