Commit e3020e49 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Start listening for kwargs.

parent aa83a413
......@@ -45,8 +45,14 @@ def submit_question(request):
def index(request):
def index(request, *args, **kwargs):
questions = Question.objects.all()
section = kwargs.get('section')
if section is not None:
paginator = Paginator(questions, 10) # show 25 questions per page
page = request.GET.get('page')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment