Fix behavior in hide_untranslated

This commit is contained in:
Iacopo Spalletti 2014-12-03 19:51:16 +01:00
parent 636461019c
commit 877c0008c1

View file

@ -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()