{% load staticfiles thumbnail %} {% for slide in carousel.slides.all %} {% if slide.url %} {% endif %}
{% with slide.mobile_image|default:slide.image as mobile_image %} {% endwith %}
{% if slide.url %}
{% endif %} {% endfor %}