Skip to content

Commit

Permalink
fix: test_cms_menus
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Yu committed Oct 29, 2024
1 parent 246b580 commit 1858a8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion djangocms_navigation/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@

using_version_lock = True
LOCK_MESSAGE = _(
"The item is currently locked or you don't have permission to change it"
"The item is currently locked or you don't "
"have permission to change it"
)
except ImportError:
using_version_lock = False
Expand Down
1 change: 1 addition & 0 deletions tests/test_cms_menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,7 @@ def test_menu_with_multiple_languages(self):
'request': self.get_request(
root_pagecontent_it.page.get_absolute_url(language="it"), language="it", page=root_pagecontent_it.page)
}
context_it_raw['request'].GET = {'language': 'it'}
context_it = Context(context_it_raw)
context_it = add_toolbar_to_request(context_it, root_pagecontent_it, view_mode="edit")
template.render(context_it)
Expand Down

0 comments on commit 1858a8f

Please sign in to comment.