##// END OF EJS Templates
admin-users: use full ilike search on filtering
marcink -
r1521:6db2b5b9 default
parent child Browse files
Show More
@@ -111,7 +111,7 b' class AdminUsersView(BaseAppView):'
111 base_q = User.query().filter(User.username != User.DEFAULT_USER)
111 base_q = User.query().filter(User.username != User.DEFAULT_USER)
112
112
113 if search_q:
113 if search_q:
114 like_expression = u'{}%'.format(safe_unicode(search_q))
114 like_expression = u'%{}%'.format(safe_unicode(search_q))
115 base_q = base_q.filter(or_(
115 base_q = base_q.filter(or_(
116 User.username.ilike(like_expression),
116 User.username.ilike(like_expression),
117 User._email.ilike(like_expression),
117 User._email.ilike(like_expression),
General Comments 0
You need to be logged in to leave comments. Login now