Commit 7a4486ea authored by Davve's avatar Davve

增加ID模糊搜索

parent 32fca706
......@@ -286,7 +286,7 @@ class APIView(View):
def make_pair(self, data):
val = data.pop('value', '')
key = data.pop('key', '')
if key and key not in ['id', 'user_id']:
if key:
key += '__contains'
if key:
data.update({key: val})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment