喜欢数据
[
{"data": '{"line": "10", "no": "10"}' }, # I want to get this one, but return these two
{"data": '{"line": "110", "no": "10"}' }
]
使用search_filter过滤器data
字段,搜索"line": "10"
,在后端,搜索词将按空格分隔,并在上方返回两个记录。
# rest_framework.filters.SearchFilter#filter_queryset
search_terms = {list} <class 'list'>: ['"line":', '"10"']
0 = {str} '"line":'
1 = {str} '"10"'
我想搜索整个单词,该怎么做?