Mercurial > public > sg101
annotate gpp/templates/forums/new_topic_thanks.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 | 5b4c812b448e |
children | 593fb6dbd449 |
rev | line source |
---|---|
bgneal@83 | 1 {% extends 'base.html' %} |
bgneal@83 | 2 {% block title %}Forums: New Topic Created{% endblock %} |
bgneal@83 | 3 {% block content %} |
bgneal@83 | 4 <h2>Forums: {{ forum.name }} - New Topic Created</h2> |
bgneal@83 | 5 |
bgneal@83 | 6 <h3> |
bgneal@83 | 7 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » |
bgneal@83 | 8 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> |
bgneal@83 | 9 </h3> |
bgneal@83 | 10 |
bgneal@83 | 11 <p> |
bgneal@83 | 12 New topic created successfully. |
bgneal@83 | 13 Click <a href="{{ topic.get_absolute_url }}">here</a> to view your new topic. |
bgneal@83 | 14 </p> |
bgneal@83 | 15 |
bgneal@83 | 16 {% endblock %} |