1. Curtis Maloney
  2. gnocchi-faq

Commits

funkybob  committed 3269fa5 Draft

Once more

  • Participants
  • Parent commits 48a0893
  • Branches default

Comments (0)

Files changed (1)

File gnocchi/faq/urls.py

View file
  • Ignore whitespace
 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')),
 )