feat(session + db): 会话搜索添加登录来源选项

This commit is contained in:
Bai
2020-07-15 17:15:34 +08:00
committed by 老广
parent c0f3a1f64a
commit 4e933fc1ca
5 changed files with 25 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ class SessionViewSet(OrgBulkModelViewSet):
permission_classes = (IsOrgAdminOrAppUser, )
filter_fields = [
"user", "asset", "system_user", "remote_addr",
"protocol", "terminal", "is_finished",
"protocol", "terminal", "is_finished", 'login_from',
]
date_range_filter_fields = [
('date_start', ('date_from', 'date_to'))