Commits

funkybob  committed 8670dc9

Try to use the right CBV

  • Participants
  • Parent commits dc0872d

Comments (0)

Files changed (1)

File gnocchi_blog/views.py

 from django.views.generic import date_based, list_detail
-from django.views.generic.dates import BaseDateListView, DateDetailView
+from django.views.generic.dates import ArchiveIndexView, DateDetailView
 
 from gnocchi_blog import models, forms
 
             qset = qset.filter(tags__in=tags)
         return qset
 
-class PostList(BaseDateListView, PostMixin):
+class PostList(ArchiveIndexView, PostMixin):
     template_name = 'blog/post_list.html'
 
 class PostDetail(DateDetailView, PostMixin):