mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-05-10 00:06:13 +00:00
Fix invalid iterator
This commit is contained in:
parent
8deb0424f1
commit
b883f051f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue