user_filter增加查询条件

This commit is contained in:
曹前明 2022-07-05 16:13:23 +08:00
parent 93d3a5aa20
commit 5e1c35902d
1 changed files with 4 additions and 0 deletions

View File

@ -8,4 +8,8 @@ class UserFilter(filters.FilterSet):
fields = {
'name': ['exact', 'contains'],
'is_active': ['exact'],
'posts': ['exact'],
'post': ['exact'],
'belong_dept': ['exact'],
'depts': ['exact']
}