{% for pic in gallery_pictures %} {% with pic.get_caption as caption %}
  • {{ caption }}
  • {% endwith %} {% endfor %}