Ticket #25193: MultiWidget_is_hidden_patch.diff

File MultiWidget_is_hidden_patch.diff, 314 bytes (added by Meredith Roman, 9 years ago)
Line 
1@@ -792,7 +792,7 @@ class MultiWidget(Widget):
2
3 @property
4 def is_hidden(self):
5- return all(w.is_hidden for w in self.widgets)
6+ return False if self.widgets == [] else all(w.is_hidden for w in self.widgets)
7
8 def render(self, name, value, attrs=None):
9 if self.is_localized:
Back to Top