Fix enum values for customer email preference grid filter

This commit is contained in:
Lance Edgar 2018-07-06 14:15:33 -05:00
parent 00a0e6fb11
commit 8cadec9a16

View file

@ -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")