annotate gpp/templates/forums/post_ip.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 fe900598f81c
children daa2916f5b34
rev   line source
bgneal@216 1 {% extends 'base.html' %}
bgneal@216 2 {% block title %}Post IP Address Info: {{ post.user_ip }}{% endblock %}
bgneal@216 3 {% block content %}
bgneal@216 4 <h2>Post IP Address Info: {{ post.user_ip }}</h2>
bgneal@216 5 <p>
bgneal@216 6 This <a href="{{ post.get_absolute_url }}">post</a> was created by
bgneal@216 7 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> from the IP address
bgneal@216 8 <a href="http://www.dnsstuff.com/tools/whois/?ip={{ post.user_ip }}">{{ post.user_ip }}</a>.
bgneal@216 9 </p>
bgneal@216 10 {% if ip_users %}
bgneal@216 11 <p>All users who have posted from {{ post.user_ip }}:</p>
bgneal@216 12 <ul>
bgneal@216 13 {% for user in ip_users %}
bgneal@216 14 <li><a href="{% url bio-view_profile username=user %}">{{ user }}</a>
bgneal@216 15 (<a href="{% url forums-posts_for_user username=user %}">posts</a>)</li>
bgneal@216 16 {% endfor %}
bgneal@216 17 </ul>
bgneal@216 18 {% endif %}
bgneal@216 19 {% endblock %}