mirror of https://github.com/jumpserver/jumpserver
perf: 优化账号 API 支持 comment 模糊搜索
parent
7bef4b07ff
commit
ab6d0d2484
|
@ -22,7 +22,7 @@ __all__ = [
|
|||
|
||||
class AccountViewSet(OrgBulkModelViewSet):
|
||||
model = Account
|
||||
search_fields = ('username', 'name', 'asset__name', 'asset__address')
|
||||
search_fields = ('username', 'name', 'asset__name', 'asset__address', 'comment')
|
||||
filterset_class = AccountFilterSet
|
||||
serializer_classes = {
|
||||
'default': serializers.AccountSerializer,
|
||||
|
|
Loading…
Reference in New Issue