feat: 增加equip的name contains查询条件
This commit is contained in:
parent
ec70aceb76
commit
387bb66914
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue