Add MasterView.has_rows concept and related logic

Now the `BatchMasterView` no longer provides most of these goodies.

Also tweak some custom batch views to reflect changes etc.
This commit is contained in:
Lance Edgar 2016-08-23 13:11:13 -05:00
parent 8a19b90efa
commit 901c2fc573
9 changed files with 410 additions and 226 deletions

View file

@ -47,7 +47,7 @@ class VendorCatalogsView(FileBatchMasterView):
Master view for vendor catalog batches.
"""
model_class = model.VendorCatalog
batch_row_class = model.VendorCatalogRow
model_row_class = model.VendorCatalogRow
batch_handler_class = VendorCatalogHandler
url_prefix = '/vendors/catalogs'

View file

@ -41,7 +41,7 @@ class VendorInvoicesView(FileBatchMasterView):
Master view for vendor invoice batches.
"""
model_class = model.VendorInvoice
batch_row_class = model.VendorInvoiceRow
model_row_class = model.VendorInvoiceRow
batch_handler_class = VendorInvoiceHandler
url_prefix = '/vendors/invoices'