Reputation: 45
I have such a QuerySet:
'category_1': Product.objects.filter(category__slug='white')
how how can I refer to a certain element of this QuerySet? for example, like referring to the elements of a list.
in template:
{{ category_1[1].image.url }}
thanks!
Upvotes: 1
Views: 180