diff --git a/djangocms_blog/views.py b/djangocms_blog/views.py index 963ae57..4cb5288 100644 --- a/djangocms_blog/views.py +++ b/djangocms_blog/views.py @@ -63,13 +63,6 @@ class BaseBlogListView(BaseBlogView): return context -class PostListView(BaseBlogListView, ListView): - view_url_name = 'djangocms_blog:posts-latest' - - def get_paginate_by(self, queryset): - return (self.config and self.config.paginate_by) or get_setting('PAGINATION') - - class PostDetailView(TranslatableSlugMixin, BaseBlogView, DetailView): context_object_name = 'post' base_template_name = 'post_detail.html' @@ -105,6 +98,13 @@ class PostDetailView(TranslatableSlugMixin, BaseBlogView, DetailView): return context +class PostListView(BaseBlogListView, ListView): + view_url_name = 'djangocms_blog:posts-latest' + + def get_paginate_by(self, queryset): + return (self.config and self.config.paginate_by) or get_setting('PAGINATION') + + class PostArchiveView(BaseBlogListView, ListView): date_field = 'date_published' allow_empty = True