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/wizards.py | |
parent | 6da9f6fcfd9f7a2e3e50b5b69620aa4b0f2b9de3 (diff) | |
download | Ishtar-b3d5880640c88864dab0f0dbc021d5bc19085307.tar.bz2 Ishtar-b3d5880640c88864dab0f0dbc021d5bc19085307.zip |
Fix menu initialization
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r-- | ishtar_common/wizards.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index cc0371982..dcad096cf 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -391,7 +391,8 @@ class Wizard(NamedUrlWizardView): if key == "DELETE" and value: is_deleted = True # no display when no label or no value - if not lbl.strip() or value is None or value == '': + if not lbl or not lbl.strip() or value is None \ + or value == '': continue if key in self.translated_keys: value = _(value) |