feat: base user增加筛选条件

This commit is contained in:
caoqianming 2024-07-31 13:43:32 +08:00
parent 94774a6187
commit c4aeca135e
1 changed files with 3 additions and 3 deletions

View File

@ -15,9 +15,9 @@ class UserFilterSet(filters.FilterSet):
'depts': ['exact'],
'type': ['exact', 'in'],
'belong_dept__name': ['exact'],
'depts__name': ["exact"],
'posts__name': ["exact"],
'posts__code': ["exact"],
'depts__name': ["exact", "contains"],
'posts__name': ["exact", "contains"],
'posts__code': ["exact", "contains"],
}