{% spaceless %} {% for album in albums %}
test
test
{% with images=album.user_images.all %} {% if images.0 %}
{% else %}
No images.
{% endif %} {% endwith %}
{{ album.title }}
{% empty %} No albums. {% endfor %} {% endspaceless %}