Commits

Job Ganzevoort committed b3446a4

bugfix: allow poll-id > 9

  • Participants
  • Parent commits 7afe0d8

Comments (0)

Files changed (1)

 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'),
 )