Answer the question
In order to leave comments, you need to log in
Why is QuerySet not iterable?
{{topSale}}//(<QuerySet [<Product: Киви>, <Product: Морковь>, <Product: Гранат>]>,)
{% for i in topSale %}
{{i}}//<QuerySet [<Product: Киви>, <Product: Морковь>, <Product: Гранат>]>
topSale = Product.objects.order_by('-is_view')[0:3],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question