class SaleView(generic.ListView):
template_name = 'artskill/sale.html'
context_object_name = "products"
queryset = [SaleImages.objects.filter(state=True), Product.objects.filter(show_sale_price=True)]
class SaleView(generic.ListView):
template_name = 'artskill/sale.html'
context_object_name = "products"
def get_queryset(self):
return Product.objects.filter(show_sale_price=True)