From 20aa6a3fbbd98854720c28276ce01b94b6ef6237 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 19 Jul 2022 16:36:21 -0500 Subject: [PATCH] Expose the `complete` flag for pricing batch also update view config defaults per new convention --- tailbone/views/batch/pricing.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tailbone/views/batch/pricing.py b/tailbone/views/batch/pricing.py index 18a4ea90..cb0f3be9 100644 --- a/tailbone/views/batch/pricing.py +++ b/tailbone/views/batch/pricing.py @@ -68,7 +68,7 @@ class PricingBatchView(BatchMasterView): 'created_by', 'rowcount', # 'status_code', - # 'complete', + 'complete', 'executed', 'executed_by', ] @@ -87,6 +87,7 @@ class PricingBatchView(BatchMasterView): 'created_by', 'rowcount', 'shelved', + 'complete', 'executed', 'executed_by', ] @@ -378,5 +379,12 @@ class PricingBatchView(BatchMasterView): ] -def includeme(config): +def defaults(config, **kwargs): + base = globals() + + PricingBatchView = kwargs.get('PricingBatchView', base['PricingBatchView']) PricingBatchView.defaults(config) + + +def includeme(config): + defaults(config)