diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-04-17 17:05:28 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 08:41:54 +0200 |
commit | b3d5880640c88864dab0f0dbc021d5bc19085307 (patch) | |
tree | 9c847f264b16ef021f71602c03e4b8eb5aeb9417 /ishtar_common/models.py | |
parent | 6da9f6fcfd9f7a2e3e50b5b69620aa4b0f2b9de3 (diff) | |
download | Ishtar-b3d5880640c88864dab0f0dbc021d5bc19085307.tar.bz2 Ishtar-b3d5880640c88864dab0f0dbc021d5bc19085307.zip |
Fix menu initialization
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 8d6278151..5d48dd813 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1696,8 +1696,10 @@ def get_current_profile(force=False): def cached_site_changed(sender, **kwargs): get_current_profile(force=True) - from ishtar_common.menus import menu - menu.reinit_menu_for_all_user() + from ishtar_common.menus import Menu + MAIN_MENU = Menu(None) + MAIN_MENU.init() + MAIN_MENU.reinit_menu_for_all_user() post_save.connect(cached_site_changed, sender=IshtarSiteProfile) |