From 8cadec9a1693b4d7f43a8a66eaf1279f90e468ca Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 6 Jul 2018 14:15:33 -0500 Subject: [PATCH] Fix enum values for customer email preference grid filter --- tailbone/views/customers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tailbone/views/customers.py b/tailbone/views/customers.py index aab47181..07226870 100644 --- a/tailbone/views/customers.py +++ b/tailbone/views/customers.py @@ -120,6 +120,9 @@ class CustomersView(MasterView): g.sorters['email'] = lambda q, d: q.order_by(getattr(model.CustomerEmailAddress.address, d)()) g.sorters['phone'] = lambda q, d: q.order_by(getattr(model.CustomerPhoneNumber.number, d)()) + # email_preference + g.set_enum('email_preference', self.enum.EMAIL_PREFERENCE) + g.set_sort_defaults('name') g.set_label('id', "ID")