Mercurial > public > sg101
view gpp/templates/forums/spammer_nailed.html @ 388:c3231af55778
For #191; r410 is wrong: it is returning the wrong posts. Rework. MySQL is not using an index on our query, and it is taking 10+ seconds. Replace this slow query with a loop that loops over the public forums, then sorts and returns the posts.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 19 Mar 2011 05:03:51 +0000 |
parents | daa2916f5b34 |
children | 3c48a555298d |
line wrap: on
line source
{% extends 'base.html' %} {% load url from future %} {% block title %}Spammer Nailed: {{ spammer.username }}{% endblock %} {% block content %} <h2>Spammer Nailed: {{ spammer.username }}</h2> <p> {% if success %} The user <a href="{% url 'bio-view_profile' username=spammer.username %}">{{ spammer.username }}</a> has had his/her account deactivated for spamming. All forum posts and comments this user has made have been deleted. The site admin has been notified of this action. Thanks for helping to keep our site spam-free! {% else %} Whoops, something went wrong deactivating the account of <a href="{% url 'bio-view_profile' username=spammer.username %}">{{ spammer.username }}</a>. Or, possibly some time has passed and the account was reinstated. If you have any questions, contact the site admin. {% endif %} </p> {% endblock %}