mirror of https://github.com/jumpserver/jumpserver
perf: api doc
parent
6e467d9b67
commit
21d6243b61
|
@ -34,7 +34,7 @@ class FTPLogViewSet(CreateModelMixin, ListModelMixin, OrgGenericViewSet):
|
|||
date_range_filter_fields = [
|
||||
('date_start', ('date_from', 'date_to'))
|
||||
]
|
||||
filterset_fields = ['user', 'asset', 'system_user', 'filename']
|
||||
filterset_fields = ['user', 'asset', 'account', 'filename']
|
||||
search_fields = filterset_fields
|
||||
ordering = ['-date_start']
|
||||
|
||||
|
|
|
@ -13,15 +13,15 @@ class PermissionBaseFilter(BaseFilterSet):
|
|||
is_valid = filters.BooleanFilter(method='do_nothing')
|
||||
user_id = filters.UUIDFilter(method='do_nothing')
|
||||
username = filters.CharFilter(method='do_nothing')
|
||||
system_user_id = filters.UUIDFilter(method='do_nothing')
|
||||
system_user = filters.CharFilter(method='do_nothing')
|
||||
account_id = filters.UUIDFilter(method='do_nothing')
|
||||
account = filters.CharFilter(method='do_nothing')
|
||||
user_group_id = filters.UUIDFilter(method='do_nothing')
|
||||
user_group = filters.CharFilter(method='do_nothing')
|
||||
all = filters.BooleanFilter(method='do_nothing')
|
||||
|
||||
class Meta:
|
||||
fields = (
|
||||
'user_id', 'username', 'system_user_id', 'system_user',
|
||||
'user_id', 'username', 'account_id', 'account',
|
||||
'user_group_id', 'user_group', 'name', 'all', 'is_valid',
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue