Fix invalid iterator

This commit is contained in:
Lucas Moeskops 2019-04-01 15:46:37 +02:00
parent 8deb0424f1
commit b883f051f3

View file

@ -135,7 +135,7 @@ class WagtailTranslator(object):
def _patch_other_models(self, model):
if hasattr(model, 'edit_handler'):
edit_handler = model.edit_handler
for tab in edit_handler:
for tab in edit_handler.children:
tab.children = self._patch_panels(tab.children)
elif hasattr(model, 'panels'):
model.panels = self._patch_panels(model.panels)