mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-05-11 16:53:11 +00:00
merge grillr-workaround_inlinepanel to fix #31
This commit is contained in:
commit
5a86ab38fd
1 changed files with 2 additions and 2 deletions
|
|
@ -349,8 +349,8 @@ class TranslationMixin(object):
|
|||
|
||||
@classmethod
|
||||
def _patch_inlinepanel(cls, instance, panel):
|
||||
inline_panels = getattr(
|
||||
instance.__class__, panel.relation_name).related.model.panels
|
||||
relation = getattr(instance.__class__, panel.relation_name)
|
||||
inline_panels = getattr(relation.related.model, 'panels', [])
|
||||
try:
|
||||
inline_model_tr_fields = translator.get_options_for_model(
|
||||
getattr(
|
||||
|
|
|
|||
Loading…
Reference in a new issue