annotate gpp/templates/podcast/detail.html @ 235:d302c498560e

Fix problem when deleting multiple topics from a forum in bulk. We getting a list of topics from the database, then deleting each topic. But after you delete a topic, the forum.last_post on the remaining non-deleted topics can be stale. This was causing a weird DoesNotExist. Now just get the topics one at a time from the database.
author Brian Neal <bgneal@gmail.com>
date Thu, 26 Aug 2010 04:01:58 +0000
parents 7fdfc9b3c71a
children daa2916f5b34
rev   line source
gremmie@1 1 {% extends 'podcast/base.html' %}
gremmie@1 2 {% block title %}Podcast: {{ podcast.title }}{% endblock %}
gremmie@1 3 {% block podcast-content %}
bgneal@225 4 <div class="breadcrumbs">
gremmie@1 5 <a href="{% url podcast.views.index %}">Podcast Index</a> &gt;&gt; {{ podcast.title }}
gremmie@1 6 </div>
gremmie@1 7 <h3>{{ podcast.pubdate|date:"F d, Y" }} &bull; {{ podcast.title }}</h3>
gremmie@1 8 <h4>{{ podcast.subtitle }}</h4>
gremmie@1 9 {{ podcast.summary|linebreaks }}
bgneal@143 10 <ul>
bgneal@143 11 <li>
bgneal@143 12 <a href="{{ podcast.enclosure_url }}">Download Now ({{ ext }})</a> &bull;
bgneal@143 13 {{ podcast.enclosure_length|filesizeformat }} &bull; {{ podcast.duration }}
bgneal@143 14 </li>
bgneal@143 15 {% if alt_ext %}
bgneal@143 16 <li>
bgneal@143 17 <a href="{{ podcast.alt_enclosure_url }}">Download Now ({{ alt_ext }})</a>
bgneal@143 18 </li>
bgneal@143 19 {% endif %}
bgneal@143 20 </ul>
gremmie@1 21 {% endblock %}