From c4aeca135e836acc7930838732cab9d0f186161b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 31 Jul 2024 13:43:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20user=E5=A2=9E=E5=8A=A0=E7=AD=9B?= =?UTF-8?q?=E9=80=89=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/system/filters.py b/apps/system/filters.py index 52312620..be208b7f 100755 --- a/apps/system/filters.py +++ b/apps/system/filters.py @@ -15,9 +15,9 @@ class UserFilterSet(filters.FilterSet): 'depts': ['exact'], 'type': ['exact', 'in'], 'belong_dept__name': ['exact'], - 'depts__name': ["exact"], - 'posts__name': ["exact"], - 'posts__code': ["exact"], + 'depts__name': ["exact", "contains"], + 'posts__name': ["exact", "contains"], + 'posts__code': ["exact", "contains"], }