From 5e1c35902d309627424ea0c50ea5013e68fd496d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Tue, 5 Jul 2022 16:13:23 +0800 Subject: [PATCH] =?UTF-8?q?user=5Ffilter=E5=A2=9E=E5=8A=A0=E6=9F=A5?= =?UTF-8?q?=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, 4 insertions(+) diff --git a/apps/system/filters.py b/apps/system/filters.py index 41997900..3fd36da6 100755 --- a/apps/system/filters.py +++ b/apps/system/filters.py @@ -8,4 +8,8 @@ class UserFilter(filters.FilterSet): fields = { 'name': ['exact', 'contains'], 'is_active': ['exact'], + 'posts': ['exact'], + 'post': ['exact'], + 'belong_dept': ['exact'], + 'depts': ['exact'] }