{% block content %}
<div class="single_photo">
<a href="{{ object.image.url }}"><img src='{{ object.image.url|thumbnail:"width=500" }}' alt="{{ object.caption }}" /></a>
- <p>{{ object.caption }}</h2>
+ {% if object.caption %}
+ <p>{{ object.caption }}</p>
+ {% endif %}
</div>
<div style="clear: both;"> </div>
{% if prev_photo or next_photo%}