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
commite98195faf34469b2195ffc3c271cc2a830981c73 (patch)
treed9785ac31d0e54e2864faa0bab52c04337c27cea /ishtar_common/models.py
parentd356385989e1a3116896ee9578cfba3290642e97 (diff)
downloadIshtar-e98195faf34469b2195ffc3c271cc2a830981c73.tar.bz2
Ishtar-e98195faf34469b2195ffc3c271cc2a830981c73.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)