sideshow.web.views.batch.neworder
¶
Views for New Order Batch
- class sideshow.web.views.batch.neworder.NewOrderBatchView(request, context=None)[source]¶
Master view for
NewOrderBatch
.Route prefix is
neworder_batches
.Notable URLs provided by this class:
/batch/neworder/
/batch/neworder/XXX
/batch/neworder/XXX/delete
The purpose of this class is to expose “raw” batch data, e.g. for troubleshooting purposes by the admin. Ideally it is not very useful.
Note that the “create” and “edit” views are not exposed here, since those should be handled by
OrderView
instead.- get_xref_buttons(batch)[source]¶
Adds “View this Order” button, if batch has been executed and a corresponding
Order
can be located.
- model_class¶
alias of
NewOrderBatch