feat: base dept filter支持parent isnull查询

This commit is contained in:
caoqianming 2025-12-26 14:52:54 +08:00
parent 7128252315
commit 216e82dae7
1 changed files with 2 additions and 1 deletions

View File

@ -45,5 +45,6 @@ class DeptFilterSet(filters.FilterSet):
model = Dept model = Dept
fields = { fields = {
'type': ['exact', 'in'], 'type': ['exact', 'in'],
'name': ['exact', 'in', 'contains'] 'name': ['exact', 'in', 'contains'],
"parent": ['exact', 'isnull'],
} }