mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-05-16 11:13:18 +00:00
Support for translated inline panels #8: https://github.com/infoportugal/wagtail-modeltranslation/issues/8
This commit is contained in:
parent
df2579c33c
commit
4713ed6e31
5 changed files with 6 additions and 3 deletions
|
|
@ -48,6 +48,10 @@ Simple app containing a mixin model that integrates modeltranslation
|
|||
|
||||
## Release Notes
|
||||
|
||||
## v0.1.3
|
||||
|
||||
- Support for translated inline panels #8: https://github.com/infoportugal/wagtail-modeltranslation/issues/8
|
||||
|
||||
## v0.1.2
|
||||
|
||||
- Fixed Problem updating field with null value #6: https://github.com/infoportugal/wagtail-modeltranslation/issues/6
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -9,7 +9,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
|||
|
||||
setup(
|
||||
name='wagtail-modeltranslation',
|
||||
version='0.1.2',
|
||||
version='0.1.3',
|
||||
packages=['wagtail_modeltranslation'],
|
||||
include_package_data=True,
|
||||
license='BSD License',
|
||||
|
|
|
|||
|
|
@ -223,8 +223,7 @@ class TranslationMixin(object):
|
|||
|
||||
translated_inline = []
|
||||
for inlinepanel in inline_panels:
|
||||
for item in instance._patch_panel(
|
||||
inlinepanel, inline_model_tr_fields):
|
||||
for item in cls._patch_fieldpanel(inlinepanel, inline_model_tr_fields):
|
||||
translated_inline.append(item)
|
||||
|
||||
getattr(instance.__class__, panel.relation_name).related.model.panels = translated_inline
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue