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
0fe6a770
Commit
0fe6a770
authored
Mar 08, 2014
by
Jean Michel Rouly
Browse files
Only accept correct section filters.
parent
d44e1378
Changes
1
Hide whitespace changes
Inline
Side-by-side
researchquestions/website/filters/urls.py
View file @
0fe6a770
...
...
@@ -3,7 +3,7 @@ from django.conf.urls import patterns, include, url
urlpatterns
=
patterns
(
'website.views'
,
#### Available filters
url
(
r
'^section/(?P<section>
\w+
)$'
,
'index'
),
url
(
r
'^section/(?P<section>
[a-zA-Z]+ {0,1}[0-9]*
)$'
,
'index'
),
url
(
r
'^date$'
,
'index'
,
{
'sort'
:
'date'
}),
url
(
r
'^comments$'
,
'index'
,
{
'sort'
:
'comments'
}),
...
...
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