Mercurial > public > sg101
diff gpp/forums/views/favorites.py @ 383:b2b37cdd020a
Fixing #189; 500 error when deleting forum topic subscription.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 16 Mar 2011 01:19:45 +0000 |
parents | a46788862737 |
children | 9d3bd7304050 |
line wrap: on
line diff
--- a/gpp/forums/views/favorites.py Wed Mar 09 02:39:24 2011 +0000 +++ b/gpp/forums/views/favorites.py Wed Mar 16 01:19:45 2011 +0000 @@ -47,10 +47,9 @@ for topic in user.favorite_topics.filter(id__in=delete_ids): user.favorite_topics.remove(topic) - page_num = request.POST.get('page', 1) - else: - page_num = request.GET.get('page', 1) + return HttpResponseRedirect(reverse("forums-manage_favorites")) + page_num = request.GET.get('page', 1) topics = user.favorite_topics.select_related().order_by('-update_date') paginator = DiggPaginator(topics, 20, body=5, tail=2, margin=3, padding=2) try: