Cosmetics - changed view class order
This commit is contained in:
parent
e9398dd79b
commit
da1adf8812
1 changed files with 7 additions and 7 deletions
|
@ -63,13 +63,6 @@ class BaseBlogListView(BaseBlogView):
|
||||||
return context
|
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):
|
class PostDetailView(TranslatableSlugMixin, BaseBlogView, DetailView):
|
||||||
context_object_name = 'post'
|
context_object_name = 'post'
|
||||||
base_template_name = 'post_detail.html'
|
base_template_name = 'post_detail.html'
|
||||||
|
@ -105,6 +98,13 @@ class PostDetailView(TranslatableSlugMixin, BaseBlogView, DetailView):
|
||||||
return context
|
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):
|
class PostArchiveView(BaseBlogListView, ListView):
|
||||||
date_field = 'date_published'
|
date_field = 'date_published'
|
||||||
allow_empty = True
|
allow_empty = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue