summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorJayaram Pai2013-12-22 22:50:27 +0530
committerJayaram Pai2013-12-22 22:50:27 +0530
commit1541ab6a4ff28a6a0a4e37873367314e3b898dac (patch)
tree80c62ab7fb280e1db5afa85fb20c72dbf97d9cc1 /website
parenta5279e062d09ef8b0fcfe9354d41d7e01d29ae69 (diff)
downloadFOSSEE-Forum-1541ab6a4ff28a6a0a4e37873367314e3b898dac.tar.gz
FOSSEE-Forum-1541ab6a4ff28a6a0a4e37873367314e3b898dac.tar.bz2
FOSSEE-Forum-1541ab6a4ff28a6a0a4e37873367314e3b898dac.zip
making forum in table format
Diffstat (limited to 'website')
-rw-r--r--website/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/website/views.py b/website/views.py
index c519b60..3c71941 100644
--- a/website/views.py
+++ b/website/views.py
@@ -83,7 +83,12 @@ def question_reply(request):
return HttpResponseRedirect('/question/'+str(qid))
def filter(request, category=None, tutorial=None, minute_range=None, second_range=None):
- context = {}
+ context = {
+ 'category': category,
+ 'tutorial': tutorial,
+ 'minute_range': minute_range,
+ 'second_range': second_range
+ }
if category and tutorial and minute_range and second_range:
questions = Question.objects.filter(category=category).filter(tutorial=tutorial).filter(minute_range=minute_range).filter(second_range=second_range)
elif tutorial is None: