fix get_queryset

This commit is contained in:
Iacopo Spalletti 2014-01-04 21:14:59 +01:00
parent ed6e331f62
commit 275f930c3f

View file

@ -15,7 +15,7 @@ class BaseBlogView(TranslatableModelAdminMixin):
language = self._language(self.request) language = self._language(self.request)
manager = self.model._default_manager.language(language) manager = self.model._default_manager.language(language)
if not self.request.user.is_staff: if not self.request.user.is_staff:
manager = manager.published() manager = manager.filter(publish=True)
return manager return manager
def render_to_response(self, context, **response_kwargs): def render_to_response(self, context, **response_kwargs):