Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
research-questions
Commits
e3020e49
Commit
e3020e49
authored
Mar 07, 2014
by
Jean Michel Rouly
Browse files
Start listening for kwargs.
parent
aa83a413
Changes
1
Hide whitespace changes
Inline
Side-by-side
researchquestions/website/views.py
View file @
e3020e49
...
@@ -45,8 +45,14 @@ def submit_question(request):
...
@@ -45,8 +45,14 @@ def submit_question(request):
)
)
@
login_required
@
login_required
def
index
(
request
):
def
index
(
request
,
*
args
,
**
kwargs
):
questions
=
Question
.
objects
.
all
()
questions
=
Question
.
objects
.
all
()
section
=
kwargs
.
get
(
'section'
)
if
section
is
not
None
:
pass
paginator
=
Paginator
(
questions
,
10
)
# show 25 questions per page
paginator
=
Paginator
(
questions
,
10
)
# show 25 questions per page
page
=
request
.
GET
.
get
(
'page'
)
page
=
request
.
GET
.
get
(
'page'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment