From 8ff590e43fd9ff0306e8cf0bd990570a185eea0e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 7 Dec 2020 19:01:43 -0600 Subject: [PATCH] Expose "commodity" filter by default, for IFPS PLU codes --- tailbone/views/ifps.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tailbone/views/ifps.py b/tailbone/views/ifps.py index 030c7e66..be3bb0f8 100644 --- a/tailbone/views/ifps.py +++ b/tailbone/views/ifps.py @@ -65,6 +65,9 @@ class IFPS_PLUView(MasterView): g.filters['plu'].default_active = True g.filters['plu'].default_verb = 'equal' + g.filters['commodity'].default_active = True + g.filters['commodity'].default_verb = 'contains' + g.set_sort_defaults('plu') # variety