|
2 | 2 | from __future__ import absolute_import, unicode_literals |
3 | 3 |
|
4 | 4 | # Third Party Stuff |
5 | | -from django.conf.urls import include, patterns, url |
| 5 | +from django.conf.urls import include, url |
6 | 6 |
|
7 | 7 | from . import comments_views, views, votes_views, dashboard |
8 | 8 |
|
9 | | -comment_urls = patterns( |
10 | | - '', |
| 9 | +comment_urls = [ |
| 10 | + |
11 | 11 | url(r'^(?P<proposal_slug>[\w-]+)/create/$', |
12 | 12 | comments_views.create_proposal_comment, name='proposal-comment-create'), |
13 | 13 | url(r'^(?P<proposal_slug>[\w-]+)/comments/(?P<proposal_comment_id>\d+)/up-vote/$', |
14 | 14 | votes_views.proposal_comment_up_vote, name='proposal-comment-up-vote'), |
15 | 15 | url(r'^(?P<proposal_slug>[\w-]+)/comments/(?P<proposal_comment_id>\d+)/down-vote/$', |
16 | 16 | votes_views.proposal_comment_down_vote, name='proposal-comment-down-vote'), |
17 | | -) |
| 17 | +] |
| 18 | + |
| 19 | +urlpatterns = [ |
18 | 20 |
|
19 | | -urlpatterns = patterns( |
20 | | - '', |
21 | 21 | # proposal urls |
22 | 22 | url(r'^$', views.list_proposals, name='proposals-list'), |
23 | 23 | url(r'^create/$', views.create_proposal, name='proposal-create'), |
|
40 | 40 | url(r'^(?P<proposal_slug>[\w-]+)/vote/$', votes_views.proposal_reviewer_vote, name='proposal-reviewer-vote'), |
41 | 41 | url(r'^(?P<proposal_slug>[\w-]+)/second-vote/$', votes_views.proposal_reviewer_secondary_vote, |
42 | 42 | name='proposal-reviewer-secondary-vote'), |
43 | | -) |
| 43 | +] |
0 commit comments