group_by snippet separating grouped objects

1
2
3
4
5
6
7
8
9
 {% for image in images %}
	{% if forloop.counter0|divisibleby:"4" %}
        separator
	{% endif %}
        {{ image }}
	{% if forloop.counter|divisibleby:"4" %}
	end separator
	{% endif %}
 {% endfor %}

More like this

  1. More information about users and groups in user admin by ramusus 4 years, 9 months ago
  2. More information about users and groups in user admin by buriy 5 years, 9 months ago
  3. Get current user without a request object by t_rybik 3 years, 7 months ago
  4. group_required decorator by msanders 4 years, 8 months ago
  5. Template tag: Group variables into list by Killarny 5 years, 1 month ago

Comments

(Forgotten your password?)