feat: 增加equip的name contains查询条件

This commit is contained in:
caoqianming 2024-01-19 09:45:25 +08:00
parent ec70aceb76
commit 387bb66914
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ class EquipFilterSet(filters.FilterSet):
"belong_dept": ["exact"], "belong_dept": ["exact"],
"belong_dept__name": ["exact"], "belong_dept__name": ["exact"],
"mgroup": ["exact"], "mgroup": ["exact"],
"mgroup__name": ["exact"] "mgroup__name": ["exact"],
"name": ["exact", "contains"]
} }
def filter_tag(self, queryset, name, value): def filter_tag(self, queryset, name, value):