add blog vote

This commit is contained in:
Zhao-Linux 2022-10-30 10:46:22 +07:00
parent 2a7a33fe1a
commit c1cf8bc0e4
8 changed files with 242 additions and 7 deletions

View file

@ -738,6 +738,8 @@ urlpatterns = [
),
),
url(r"^blog/", paged_list_view(blog.PostList, "blog_post_list")),
url(r"^post/upvote/$", blog.upvote_blog, name="blog_upvote"),
url(r"^post/downvote/$", blog.downvote_blog, name="blog_downvote"),
url(r"^post/(?P<id>\d+)-(?P<slug>.*)$", blog.PostView.as_view(), name="blog_post"),
url(r"^license/(?P<key>[-\w.]+)$", license.LicenseDetail.as_view(), name="license"),
url(