feat: base dept filter支持parent isnull查询
This commit is contained in:
parent
7128252315
commit
216e82dae7
|
|
@ -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'],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue