From d6e241fc49545d94599cb5023685fd2942a110ad Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 27 Nov 2023 22:55:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20=E9=83=A8=E9=97=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=A2=9E=E5=8A=A0contains?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/system/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/system/filters.py b/apps/system/filters.py index 412c3e75..8d83e3a8 100755 --- a/apps/system/filters.py +++ b/apps/system/filters.py @@ -25,5 +25,5 @@ class DeptFilterSet(filters.FilterSet): model = Dept fields = { 'type': ['exact', 'in'], - 'name': ['exact', 'in'] + 'name': ['exact', 'in', 'contains'] }