Commit dce869c7 authored by luxcem's avatar luxcem

fix urls

parent 75fb3fe6
from django.conf.urls import url
from rp.views.votes import upvote, downvote
from rp.views.articles import ArticleListFlux
urlpatterns = [
......@@ -13,14 +12,4 @@ urlpatterns = [
ArticleListFlux.as_view(),
name="article-list"
),
url(
r"^votes/upvote/(?P<content_type>\d+)/(?P<object_id>\d+)$",
upvote,
name="und-upvote"
),
url(
r"^votes/downvote/(?P<content_type>\d+)/(?P<object_id>\d+)$",
downvote,
name="und-downvote"
),
]
......@@ -4,7 +4,7 @@ from django.contrib.contenttypes.models import ContentType
class UDList(ListView):
"""
Ads id upvoted by user
Adds id upvoted by user
"""
def get_context_data(self, **kwargs):
content_type = ContentType.objects.get_for_model(self.model)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment