From 216e82dae7bb01e118b7757cedc7fd06eb0031e7 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 26 Dec 2025 14:52:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20dept=20filter=E6=94=AF=E6=8C=81p?= =?UTF-8?q?arent=20isnull=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/system/filters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/system/filters.py b/apps/system/filters.py index d3f10c9..481b639 100755 --- a/apps/system/filters.py +++ b/apps/system/filters.py @@ -45,5 +45,6 @@ class DeptFilterSet(filters.FilterSet): model = Dept fields = { 'type': ['exact', 'in'], - 'name': ['exact', 'in', 'contains'] + 'name': ['exact', 'in', 'contains'], + "parent": ['exact', 'isnull'], }