Changeset 8cadec9 in tailbone


Ignore:
Timestamp:
07/06/18 14:15:33 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
b464db5
Parents:
00a0e6f
Message:

Fix enum values for customer email preference grid filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/views/customers.py

    r00a0e6f r8cadec9  
    121121        g.sorters['phone'] = lambda q, d: q.order_by(getattr(model.CustomerPhoneNumber.number, d)())
    122122
     123        # email_preference
     124        g.set_enum('email_preference', self.enum.EMAIL_PREFERENCE)
     125
    123126        g.set_sort_defaults('name')
    124127
Note: See TracChangeset for help on using the changeset viewer.