修复BUG: filter_fields使用icontains导致条件查询失效
parent
fb69352849
commit
74f7a37c17
|
@ -292,11 +292,6 @@ class CustomDjangoFilterBackend(DjangoFilterBackend):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
orm_lookups.append(search_field)
|
orm_lookups.append(search_field)
|
||||||
orm_lookups = (
|
|
||||||
orm_lookups
|
|
||||||
if isinstance(filterset.__class__._meta.fields, (list, tuple))
|
|
||||||
else filterset.filters.keys()
|
|
||||||
)
|
|
||||||
conditions = []
|
conditions = []
|
||||||
queries = []
|
queries = []
|
||||||
for search_term_key in filterset.data.keys():
|
for search_term_key in filterset.data.keys():
|
||||||
|
|
|
@ -210,7 +210,7 @@ export const crudOptions = (vm) => {
|
||||||
title: '手机号码',
|
title: '手机号码',
|
||||||
key: 'mobile',
|
key: 'mobile',
|
||||||
search: {
|
search: {
|
||||||
disabled: true
|
disabled: false
|
||||||
},
|
},
|
||||||
minWidth: 110,
|
minWidth: 110,
|
||||||
type: 'input',
|
type: 'input',
|
||||||
|
|
Loading…
Reference in New Issue