Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Modify language menu for pages only if it is present #179

Merged
merged 6 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions djangocms_alias/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ def enable_create_wizard_button(self):

def override_language_switcher(self):
language_menu = self.toolbar.get_menu(LANGUAGE_MENU_IDENTIFIER, _('Language'))
if not language_menu:
return
# Remove all existing language links
# remove_item uses `items` attribute so we have to copy object
for _item in copy(language_menu.items):
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def run(*args, **kwargs):
"-m",
"piptools",
"compile",
"--generate-hashes",
# temporarily remove "--generate-hashes", until all dependencies are actual releases
"--allow-unsafe",
] + sys.argv[1:]

Expand Down
167 changes: 0 additions & 167 deletions tests/requirements/djmain-py310-default.txt

This file was deleted.

Loading