Add missing brackets to as_view, to fix #135

This commit is contained in:
Oliver Marks 2017-07-12 17:56:05 +01:00
parent c33f4796cb
commit b3d580d49c
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ urlpatterns = [
url(r'^blog/$', PostList.as_view(), name='blog'), url(r'^blog/$', PostList.as_view(), name='blog'),
url(r'^blog/rss/$', BlogFeed(), name='blog-rss'), url(r'^blog/rss/$', BlogFeed(), name='blog-rss'),
url(r'^rss.xml$', RssFeed(), name='main-rss'), url(r'^rss.xml$', RssFeed(), name='main-rss'),
url(r'^blog/(?P<slug>[0-9A-Za-z_\-]+)/$', BlogPost.as_view, name='blog-item'), url(r'^blog/(?P<slug>[0-9A-Za-z_\-]+)/$', BlogPost.as_view(), name='blog-item'),
url(r'^blog/category/(?P<category>[0-9A-Za-z_\-]+)/$', PostList.as_view(), name='blog-category'), url(r'^blog/category/(?P<category>[0-9A-Za-z_\-]+)/$', PostList.as_view(), name='blog-category'),
url(r'^blog/category/(?P<category>[0-9A-Za-z_\-]+)/rss/$', BlogCategoryFeed(), name='blog-category-feed'), url(r'^blog/category/(?P<category>[0-9A-Za-z_\-]+)/rss/$', BlogCategoryFeed(), name='blog-category-feed'),
url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps}, url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps},