我在编写Django ORM queryset时遇到错误:
CharField不支持的查找“包含”或不允许在字段中加入
我已经尝试过上述代码来检索查询集
product = Clothing.objects.filter(Q(product = Product.objects.filter(name__icontains =question).first())|Q(brand__icontains = question)| Q(category__icontains = question) | Q(sub_category__incontains = question) | Q(description__icontains = question))
我希望输出查询应该返回ouptut 但实际输出为“ CharField不支持的查找'包含'或不允许在字段上加入”