From 3f2eb3f83d7d97846b2947526ec3ba063e872df5 Mon Sep 17 00:00:00 2001 From: Sylvain Fankhauser Date: Tue, 26 Apr 2016 13:38:50 +0200 Subject: [PATCH] Only list posts from the current site This fixes a regression introduced by a1b2c5630528f0edb984888533775a737a612f83 in which the `on_site()` filter from the blog posts list view was removed. --- djangocms_blog/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_blog/views.py b/djangocms_blog/views.py index 7c0ee9b..d6b80f2 100644 --- a/djangocms_blog/views.py +++ b/djangocms_blog/views.py @@ -44,7 +44,7 @@ class BaseBlogView(AppConfigMixin, ViewUrlMixin): if not getattr(self.request, 'toolbar', False) or not self.request.toolbar.edit_mode: queryset = queryset.published() setattr(self.request, get_setting('CURRENT_NAMESPACE'), self.config) - return queryset + return queryset.on_site() def get_template_names(self): template_path = (self.config and self.config.template_prefix) or 'djangocms_blog'