📅  最后修改于: 2022-03-11 14:47:06.232000             🧑  作者: Mango
final_pred = Q()
for pred in [Q(name__icontains=keyword) for keyword in keywords.split(' ')]:
final_pred = final_pred | pred;
Table.objects.filter(final_pre)