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

pull/11237/head^2
Bai 1 year ago committed by Bryan
parent 7bef4b07ff
commit ab6d0d2484

@ -22,7 +22,7 @@ __all__ = [
class AccountViewSet(OrgBulkModelViewSet): class AccountViewSet(OrgBulkModelViewSet):
model = Account model = Account
search_fields = ('username', 'name', 'asset__name', 'asset__address') search_fields = ('username', 'name', 'asset__name', 'asset__address', 'comment')
filterset_class = AccountFilterSet filterset_class = AccountFilterSet
serializer_classes = { serializer_classes = {
'default': serializers.AccountSerializer, 'default': serializers.AccountSerializer,

Loading…
Cancel
Save