意见:
....
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}}
)