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

修改授权规则搜索为模糊搜索
pull/225/head
ibuler 2016-05-09 18:53:04 +08:00
parent d4385c7e43
commit d05e9d0b45
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)
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)