urls fix
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 28 Sep 2011 10:49:30 +0000 (12:49 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 28 Sep 2011 10:49:30 +0000 (12:49 +0200)
apps/quiz/urls.py

index ae5c683..7189846 100644 (file)
@@ -3,6 +3,6 @@ from django.conf.urls.defaults import *
 
 urlpatterns = patterns('quiz.views',
     url(r'^$', 'question', name='quiz'),
-    url(r'^q/(?P<slug>[-a-z0-9]*)/$', 'question', name='quiz'),
-    url(r'^r/(?P<slug>[-a-z0-9]*)/$', 'result', name='quiz_result'),
+    url(r'^q/(?P<slug>[^/]*)/$', 'question', name='quiz'),
+    url(r'^r/(?P<slug>[^/]*)/$', 'result', name='quiz_result'),
 )