功能变化: django 过滤器添加ID搜索

pull/103/head
李强 2023-06-09 12:32:40 +08:00
parent 34cd1694d0
commit ccf21dcb1e
1 changed files with 0 additions and 1 deletions

View File

@ -354,7 +354,6 @@ class CustomDjangoFilterBackend(DjangoFilterBackend):
continue
query = Q(**{orm_lookup: filterset.data[search_term_key]})
queries.append(query)
print(1, queries)
if len(queries) > 0:
conditions.append(reduce(operator.and_, queries))
queryset = queryset.filter(reduce(operator.and_, conditions))