fix get_queryset
This commit is contained in:
parent
ed6e331f62
commit
275f930c3f
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class BaseBlogView(TranslatableModelAdminMixin):
|
|||
language = self._language(self.request)
|
||||
manager = self.model._default_manager.language(language)
|
||||
if not self.request.user.is_staff:
|
||||
manager = manager.published()
|
||||
manager = manager.filter(publish=True)
|
||||
return manager
|
||||
|
||||
def render_to_response(self, context, **response_kwargs):
|
||||
|
|
Loading…
Reference in a new issue