feat: user增加belong_dept_name查询条件

This commit is contained in:
caoqianming 2023-10-25 17:23:16 +08:00
parent d76b0ca0e4
commit 31f515a966
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@ class UserFilterSet(filters.FilterSet):
'post': ['exact'],
'belong_dept': ['exact'],
'depts': ['exact'],
'type': ['exact', 'in']
'type': ['exact', 'in'],
'belong_dept__name': ['exact'],
'depts__name': ["exact"]
}