Refactor batch views / templates per rattail framework overhaul
This commit is contained in:
parent
a5184e416a
commit
203f0242fb
12 changed files with 225 additions and 182 deletions
|
@ -31,7 +31,6 @@ from sqlalchemy import orm
|
|||
from rattail import enum
|
||||
from rattail.db import model, api
|
||||
from rattail.gpc import GPC
|
||||
from rattail.db.batch.purchase.handler import PurchaseBatchHandler
|
||||
from rattail.time import localtime
|
||||
from rattail.core import Object
|
||||
from rattail.util import OrderedDict
|
||||
|
@ -50,7 +49,7 @@ class PurchaseBatchView(BatchMasterView):
|
|||
model_class = model.PurchaseBatch
|
||||
model_title_plural = "Purchase Batches"
|
||||
model_row_class = model.PurchaseBatchRow
|
||||
batch_handler_class = PurchaseBatchHandler
|
||||
default_handler_spec = 'rattail.batch.purchase:PurchaseBatchHandler'
|
||||
route_prefix = 'purchases.batch'
|
||||
url_prefix = '/purchases/batches'
|
||||
rows_creatable = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue