ビュー:
....
d = Data.objects.filter(is_accepted=True)
....
テンプレート:
{% for item in d %}
{% for picture in item.photo_set.all %}
<img class="image" src="{{ picture.photo.url}}">
{% endfor %}
{% endfor %}
最初の写真だけを取得するには?( {{ picture.photo.url}}
)