我想在django中使用带OR条件的filter来过滤对象数据。例如。Books.objects.filter(title=title or price=price or description=description or author=author)
我认为这不是执行filter的正确方式在我的<e
我希望我的for循环结束后,如果条件是满足三次,而我的“产品”细节在我的eCommerce网站。</div> {% endwith %}我想要第二个for循环,即{% for i in products %}中断一次if条件,即它内部的{% if i.category.id == item.id %}满足三次。但是,我设置为0的计数器被反复递增到1,而不是在fo