annotate gpp/templates/forums/edit_post.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 2d299909e074
children 593fb6dbd449
rev   line source
bgneal@106 1 {% extends 'base.html' %}
bgneal@127 2 {% load forum_tags %}
bgneal@106 3 {% block title %}Forums: Edit Post{% endblock %}
bgneal@106 4 {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@106 5 {% block content %}
bgneal@106 6 <h2>Forums: Edit Post</h2>
bgneal@106 7
bgneal@106 8 <h3>
bgneal@106 9 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
bgneal@106 10 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> &raquo;
bgneal@106 11 <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a>
bgneal@106 12 </h3>
bgneal@106 13
bgneal@106 14 <div class="forum-block">
bgneal@106 15 <table class="forum-topic" id="forum-topic">
bgneal@106 16 {% include 'forums/display_post.html' %}
bgneal@106 17 </table>
bgneal@106 18
bgneal@106 19 <a name="forum-reply-form"></a>
bgneal@127 20 {% show_form "Edit Post" form "Update Post" 0 MEDIA_URL %}
bgneal@123 21 </div>
bgneal@106 22 {% endblock %}