Commit 0fe6a770 authored by Jean Michel Rouly's avatar Jean Michel Rouly

Only accept correct section filters.

parent d44e1378
......@@ -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'}),
......
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