Fix behavior in hide_untranslated
This commit is contained in:
parent
636461019c
commit
877c0008c1
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class BaseBlogView(ViewUrlMixin):
|
|||
|
||||
def get_queryset(self):
|
||||
language = get_language()
|
||||
queryset = self.model._default_manager.language(language_code=language)
|
||||
queryset = self.model._default_manager.active_translations(language_code=language)
|
||||
if not self.request.toolbar or not self.request.toolbar.edit_mode:
|
||||
queryset = queryset.published()
|
||||
return queryset.on_site()
|
||||
|
|
Loading…
Reference in a new issue