Commits

Anonymous committed 3269fa5 Draft

Once more

Comments (0)

Files changed (1)

gnocchi/faq/urls.py

 from django.views.generic import DetailView
 
 urlpatterns = patterns('',
-    ('^(?P<pk>\d+)/$', DetailView(model=Category).as_view()),
-    ('^(?P<slug>[-\w]+)/$', DetailView(model=Category, slug_field='slug').as_view()),
+    ('^(?P<pk>\d+)/$', DetailView.as_view(model=Category)),
+    ('^(?P<slug>[-\w]+)/$', DetailView.as_view(model=Category, slug_field='slug')),
 )