From 31f515a9668a641c0198e2995d73c332b534fc8f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 25 Oct 2023 17:23:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20user=E5=A2=9E=E5=8A=A0belong=5Fdept=5Fn?= =?UTF-8?q?ame=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/system/filters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/system/filters.py b/apps/system/filters.py index 5ab6c501..0013a133 100755 --- a/apps/system/filters.py +++ b/apps/system/filters.py @@ -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"] }