New url for upvote
@@ -20,7 +20,7 @@ from TWLight.graphs.urls import csv_urlpatterns as csv_urls
from TWLight.graphs.views import DashboardView
from TWLight.resources.models import Suggest
from TWLight.resources.urls import urlpatterns as partners_urls
-from TWLight.resources.views import PartnerSuggestView, SuggestDeleteView
+from TWLight.resources.views import PartnerSuggestView, SuggestDeleteView, SuggestUpvoteView
from TWLight.users import authorization as auth
from TWLight.users.urls import urlpatterns as users_urls
from TWLight.users.views import TermsView
@@ -75,6 +75,9 @@ urlpatterns = [
url(r'^suggest/(?P<pk>[0-9]+)/delete/$',
SuggestDeleteView.as_view(),
name='suggest-delete'),
+ url(r'^suggest/(?P<pk>[0-9]+)/upvote/$',
+ SuggestUpvoteView.as_view(),
+ name='upvote'),
# Cached for 24 hours.
url(r'^i18n-whitelist$', cache_page(86400)(LanguageWhiteListView.as_view()), name='i18n_whitelist'),
