Browse Source

fix: 修复改密日志支持模糊搜索

pull/6431/head
Bai 3 years ago committed by Jiangjie.Bai
parent
commit
72deb005a6
  1. 1
      apps/audits/api.py

1
apps/audits/api.py

@ -76,6 +76,7 @@ class PasswordChangeLogViewSet(ListModelMixin, CommonGenericViewSet):
('datetime', ('date_from', 'date_to'))
]
filterset_fields = ['user', 'change_by', 'remote_addr']
search_fields = filterset_fields
ordering = ['-datetime']
def get_queryset(self):

Loading…
Cancel
Save