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:
parent
8a19b90efa
commit
901c2fc573
9 changed files with 410 additions and 226 deletions
2
tailbone/views/vendors/catalogs.py
vendored
2
tailbone/views/vendors/catalogs.py
vendored
|
@ -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'
|
||||
|
||||
|
|
2
tailbone/views/vendors/invoices.py
vendored
2
tailbone/views/vendors/invoices.py
vendored
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue