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

pull/11237/head^2
Bai 2023-08-09 17:02:41 +08:00 committed by Bryan
parent 7bef4b07ff
commit ab6d0d2484
1 changed files with 1 additions and 1 deletions

View File

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