I want to fill a table with a list of results. But not sure how to tell the template that it\'s time to close current and start a new one, after 3 products was already disp
Even better is to add a foorloop.last condition to add at the end of the last row:
foorloop.last
{% for item in results %} {% if forloop.counter0|divisibleby:3 %}{% endif %} {{ item }} {% if forloop.counter|divisibleby:3 or forloop.last %}{% endif %} {% endfor %}