{% for object in type.instance.objects.all %}
{% with 'toolbar/gallery_list_'|add:type.name|add:'.html' as x %}{% include x %}{% endwith %}
{% endfor %}
{% endfor %}
Give the gallery a descriptive name for use in the site admin.
{% for gallery in galleries %}
{% for object in gallery.items.all %}
{% with 'toolbar/gallery_disp_'|add:object.content_type.app_label|add:'.html' as x %}{% include x %}{% endwith %}
{% endfor %}