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