Str/bytes fix for publishing audiobooks.
[wolnelektury.git] / src / social / urls.py
1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 #
5 from django.conf.urls import url
6 from django.views.decorators.cache import never_cache
7 from . import views
8
9
10 urlpatterns = [
11     url(r'^lektura/(?P<slug>[a-z0-9-]+)/lubie/$', views.like_book, name='social_like_book'),
12     url(r'^lektura/(?P<slug>[a-z0-9-]+)/nie_lubie/$', views.unlike_book, name='social_unlike_book'),
13     url(r'^lektura/(?P<slug>[a-z0-9-]+)/polki/$', never_cache(views.ObjectSetsFormView()), name='social_book_sets'),
14     url(r'^polka/$', views.my_shelf, name='social_my_shelf'),
15
16     # Includes
17     url(r'^cite/(?P<pk>\d+)\.(?P<lang>.+)\.html$', views.cite, name='social_cite'),
18     url(r'^cite_main/(?P<pk>\d+)\.(?P<lang>.+)\.html$', views.cite, {'main': True}, name='social_cite_main'),
19     url(r'^cite_info/(?P<pk>\d+).html$', views.cite_info, name='social_cite_info'),
20 ]