We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772a955 commit e056308Copy full SHA for e056308
menu/menu.py
@@ -196,9 +196,8 @@ def process(self, request):
196
if child.visible:
197
visible_children.append(child)
198
199
- if getattr(
200
- settings, 'MENU_HIDE_EMPTY', False
201
- ) and not self.check and not len(visible_children):
+ hide_empty = getattr(settings, 'MENU_HIDE_EMPTY', False)
+ if hide_empty and not self.check and not len(visible_children):
202
self.visible = False
203
return
204
0 commit comments