{% comment %} Displays an image for use in a list of things (publication, events) etc. Expects: * obj - The object whose thumbnail we're showing. * alt_text - The text to use as the image's `alt` text. {% endcomment %} {% with link_url=url|default:obj.thumbnail.url %} {{ alt_text }} {% endwith %}