modify(jperm) 授权列表模糊搜索 (#225)

修改授权规则搜索为模糊搜索
pull/224/merge
ibuler 2016-05-09 18:54:33 +08:00
parent 04fc9962ff
commit ecfaf9f02d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def perm_rule_list(request):
rules_list = rules_list.filter(id=rule_id) rules_list = rules_list.filter(id=rule_id)
if keyword: if keyword:
rules_list = rules_list.filter(Q(name=keyword)) rules_list = rules_list.filter(Q(name__icontains=keyword))
rules_list, p, rules, page_range, current_page, show_first, show_end = pages(rules_list, request) rules_list, p, rules, page_range, current_page, show_first, show_end = pages(rules_list, request)