annotate gpp/templates/forums/new_topic.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@83 1 {% extends 'base.html' %}
bgneal@127 2 {% load forum_tags %}
bgneal@83 3 {% block title %}Forums: New Topic{% endblock %}
bgneal@95 4 {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@83 5 {% block content %}
bgneal@83 6 <h2>{{ forum.name }} - New Topic</h2>
bgneal@83 7
bgneal@83 8 <h3>
bgneal@83 9 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
bgneal@83 10 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a>
bgneal@83 11 </h3>
bgneal@83 12
bgneal@127 13 {% show_form "New Topic" form "Submit" 0 MEDIA_URL %}
bgneal@83 14 {% endblock %}