So here\'s my problem: I\'ve got a bunch of instances of a class. I would like to have a sort of table of these instance objects, so that there is a maximum of six in every
Have no time to explain, but I've had similar problem and until i closed this browser page here is a solution
{% for sub_article in articles %} {% if forloop.first %}{% endif %} {{ sub_article.name }} {% if forloop.counter|divisibleby:3 %}{% endif %} {% if forloop.last %}{% endif %} {% endfor %}