Fix couple of bugs for vendor catalog views

No need to expose an "edit" mode for this batch since view allows
refresh.
This commit is contained in:
Lance Edgar 2016-10-10 11:16:55 -05:00
parent 3b84a92d7d
commit 223a6dc862
2 changed files with 2 additions and 1 deletions

View file

@ -41,7 +41,7 @@
<%def name="grid_tools()">
% if not batch.executed:
<p>${h.link_to("Delete all rows matching current search", url('{}.rows.bulk_delete'.format(route_prefix), uuid=batch.uuid))}</p>
<p>${h.link_to("Delete all rows matching current search", url('{}.delete_rows'.format(route_prefix), uuid=batch.uuid))}</p>
% endif
</%def>

View file

@ -50,6 +50,7 @@ class VendorCatalogsView(FileBatchMasterView):
model_row_class = model.VendorCatalogRow
batch_handler_class = VendorCatalogHandler
url_prefix = '/vendors/catalogs'
editable = False
def get_parsers(self):
if not hasattr(self, 'parsers'):