Mercurial > public > sg101
diff gpp/forums/views/main.py @ 280:21d2ca3b4bf7
Fixing #121. The forum query pulldown should appear on all forum query pages for consistency.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 03 Oct 2010 20:44:09 +0000 |
parents | 307a74e28112 |
children | 8fd4984d5c3b |
line wrap: on
line diff
--- a/gpp/forums/views/main.py Sun Oct 03 00:28:23 2010 +0000 +++ b/gpp/forums/views/main.py Sun Oct 03 20:44:09 2010 +0000 @@ -14,7 +14,6 @@ from django.core.paginator import InvalidPage from django.shortcuts import get_object_or_404 from django.shortcuts import render_to_response -from django.shortcuts import redirect from django.template.loader import render_to_string from django.template import RequestContext from django.views.decorators.http import require_POST @@ -76,23 +75,10 @@ ####################################################################### -SPECIAL_QUERIES = { - 'unread': 'forums-unread_topics', - 'unanswered': 'forums-unanswered_topics', - 'mine': 'forums-my_posts', - 'favorites': 'forums-manage_favorites', - 'subscriptions': 'forums-manage_subscriptions', -} - def index(request): """ This view displays all the forums available, ordered in each category. """ - # check for special forum queries - query = request.GET.get("query") - if query in SPECIAL_QUERIES: - return redirect(SPECIAL_QUERIES[query]) - public_forums = Forum.objects.public_forums() feeds = [{'name': 'All Forums', 'feed': FEED_BASE}]