From 1541ab6a4ff28a6a0a4e37873367314e3b898dac Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Sun, 22 Dec 2013 22:50:27 +0530 Subject: making forum in table format --- website/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'website/views.py') 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: -- cgit