/django-listutils

Django template tag to split list into sub lists.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

django-listutils

Django template tag to split list into sub lists.

{% for indi in children|partition:"2" %}
    <div class="row">
    {% for indj in indi %}
        <div class="col-sm-6">
         <p> indj.name </p>
         </div>
    {% endfor %}
    </div>
{% endfor %}