Skip to content

Commit 24f2f32

Browse files
author
Jimmy Lam
committed
Merge branch 'develop' of github.com:jimmylam/django-cms into develop
2 parents abba0aa + 4b278a9 commit 24f2f32

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cms/admin/pageadmin.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,12 +451,13 @@ def update_language_tab_context(self, request, obj=None, context=None):
451451
context = {}
452452
language = get_language_from_request(request, obj)
453453
languages = self._get_site_languages(obj)
454+
# Dates and Advanced Settings are not language dependent, thus we hide the language
455+
# selection bar: the language is forced through the form class
456+
language_indpendent = context.get('publishing_dates', False) or context.get('advanced_settings', False)
454457
context.update({
455458
'language': language,
456459
'language_tabs': languages,
457-
# Dates are not language dependent, thus we hide the language
458-
# selection bar: the language is forced through the form class
459-
'show_language_tabs': len(list(languages)) > 1 and not context.get('publishing_dates', False),
460+
'show_language_tabs': len(list(languages)) > 1 and not language_indpendent,
460461
})
461462
return context
462463

0 commit comments

Comments
 (0)