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

pull/6431/head
Bai 3 years ago committed by Jiangjie.Bai
parent 18509a0ca4
commit 72deb005a6

@ -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