diff options
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 |
commit | b3735a1886337823944569c85dc720ff43658de7 (patch) | |
tree | d9785ac31d0e54e2864faa0bab52c04337c27cea /ishtar_common/menu_base.py | |
parent | a2734e9e659dd95c6f6955d73c1d512e543948dc (diff) | |
download | Ishtar-b3735a1886337823944569c85dc720ff43658de7.tar.bz2 Ishtar-b3735a1886337823944569c85dc720ff43658de7.zip |
Force cache menu to be regerated on profile change (refs #3746)
Diffstat (limited to 'ishtar_common/menu_base.py')
-rw-r--r-- | ishtar_common/menu_base.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/menu_base.py b/ishtar_common/menu_base.py index 13eb46f99..d18964c40 100644 --- a/ishtar_common/menu_base.py +++ b/ishtar_common/menu_base.py @@ -21,9 +21,12 @@ from ishtar_common.models import get_current_profile class SectionItem: - def __init__(self, idx, label, childs=[], profile_restriction=None, css=''): + def __init__(self, idx, label, childs=None, profile_restriction=None, + css=''): self.idx = idx self._label = label + if not childs: + childs = [] self.childs = childs self.available = False self.items = {} |