Source

django-poll-system / poll / urls.py

Diff from to

poll/urls.py

 from poll.ajax import poll_ajax_vote, poll_ajax_result
 
 urlpatterns = patterns('',
-    url(r'^vote/(?P<poll_pk>\d)$',
+    url(r'^vote/(?P<poll_pk>\d+)$',
         poll_ajax_vote,
         name='poll_ajax_vote'),
-    url(r'^result/(?P<poll_pk>\d)$',
+    url(r'^result/(?P<poll_pk>\d+)$',
         poll_ajax_result,
         name='poll_ajax_result'),
 )