I have a django view and a make a render html to return a ORM query some as
products.objects.all()
return render(request,'index.html',{"product":products})
I can make a render correctly from html page using a for cycle , the query of products this return a code and product's quantity now my problem is how i can make a cycle for print the same product twice o more depending of the product's quantity
I have sometime similar
{%for a in range({{product.quantity}})%}
but not is posible make a render correctly of template
Some idea how I should be make this cycle for into this template