Browse Source

perf: 优化账号 API 支持 comment 模糊搜索

pull/11237/head^2
Bai 1 year ago committed by Bryan
parent
commit
ab6d0d2484
  1. 2
      apps/accounts/api/account/account.py

2
apps/accounts/api/account/account.py

@ -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…
Cancel
Save