fix: 修复应用账号不能通过用户名过滤的问题

pull/6819/head
Michael Bai 2021-09-13 15:07:33 +08:00 committed by Jiangjie.Bai
parent ea4dccbab8
commit b9ffc23066
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ from .. import serializers
class AccountFilterSet(BaseFilterSet):
username = filters.CharFilter(field_name='username')
username = filters.CharFilter(method='do_nothing')
type = filters.CharFilter(field_name='type', lookup_expr='exact')
category = filters.CharFilter(field_name='category', lookup_expr='exact')
app_display = filters.CharFilter(field_name='app_display', lookup_expr='exact')