From 12dd6ae6b09936c93a198cbe6269874c6b3252ce Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 19 Feb 2018 15:31:02 -0600 Subject: [PATCH] Use all "normal" product form fields, for mobile view --- tailbone/views/products.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index 68594509..00872e86 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -79,6 +79,10 @@ class ProductsView(MasterView): supports_mobile = True has_versions = True + labels = { + 'status_code': "Status", + } + grid_columns = [ 'upc', 'brand', @@ -131,9 +135,7 @@ class ProductsView(MasterView): 'inventory_on_order', ] - labels = { - 'status_code': "Status", - } + mobile_form_fields = form_fields # These aliases enable the grid queries to filter products which may be # purchased from *any* vendor, and yet sort by only the "preferred" vendor