From 793d80f0929843ff00c79c8b91352456cee3e279 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 4 Jul 2020 11:44:09 -0500 Subject: [PATCH] Make field list explicit for Department views --- tailbone/views/departments.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tailbone/views/departments.py b/tailbone/views/departments.py index 7b31fd31..c1369543 100644 --- a/tailbone/views/departments.py +++ b/tailbone/views/departments.py @@ -52,6 +52,14 @@ class DepartmentsView(MasterView): 'exempt_from_gross_sales', ] + form_fields = [ + 'number', + 'name', + 'product', + 'personnel', + 'exempt_from_gross_sales', + ] + def configure_grid(self, g): super(DepartmentsView, self).configure_grid(g) g.filters['name'].default_active = True