summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-03-01 12:47:20 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-03-01 12:47:20 +0100
commitb3735a1886337823944569c85dc720ff43658de7 (patch)
treed9785ac31d0e54e2864faa0bab52c04337c27cea /ishtar_common/models.py
parenta2734e9e659dd95c6f6955d73c1d512e543948dc (diff)
downloadIshtar-b3735a1886337823944569c85dc720ff43658de7.tar.bz2
Ishtar-b3735a1886337823944569c85dc720ff43658de7.zip
Force cache menu to be regerated on profile change (refs #3746)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 6f8a66f3b..b20392656 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1686,6 +1686,8 @@ def get_current_profile(force=False):
def cached_site_changed(sender, **kwargs):
get_current_profile(force=True)
+ from ishtar_common.menus import menu
+ menu.init(force=True)
post_save.connect(cached_site_changed, sender=IshtarSiteProfile)