# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
-from django.conf.urls.defaults import *
+from django.conf.urls import patterns, url
from django.db.models import Max
from django.views.generic import ListView, RedirectView
from catalogue.feeds import AudiobookFeed
urlpatterns = patterns('picture.views',
# pictures - currently pictures are coupled with catalogue, hence the url is here
- url(r'^obraz/?$', 'picture_list_thumb', name='picture_list_thumb'),
+ url(r'^obraz/$', 'picture_list_thumb', name='picture_list_thumb'),
url(r'^obraz/(?P<slug>%s).html$' % SLUG, 'picture_viewer', name='picture_viewer'),
- url(r'^obraz/(?P<slug>%s)/?$' % SLUG, 'picture_detail'),
+ url(r'^obraz/(?P<slug>%s)/$' % SLUG, 'picture_detail'),
)