Fix enum values for customer email preference grid filter
This commit is contained in:
parent
00a0e6fb11
commit
8cadec9a16
|
@ -120,6 +120,9 @@ class CustomersView(MasterView):
|
||||||
g.sorters['email'] = lambda q, d: q.order_by(getattr(model.CustomerEmailAddress.address, d)())
|
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)())
|
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_sort_defaults('name')
|
||||||
|
|
||||||
g.set_label('id', "ID")
|
g.set_label('id', "ID")
|
||||||
|
|
Loading…
Reference in a new issue