diff -r 11e06690bc32 -r 36af332b6dd0 src/pyams_content/component/paragraph/zmi/contact.py --- a/src/pyams_content/component/paragraph/zmi/contact.py Fri Jul 13 08:51:55 2018 +0200 +++ b/src/pyams_content/component/paragraph/zmi/contact.py Fri Jul 13 09:23:53 2018 +0200 @@ -17,7 +17,7 @@ # import interfaces from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \ - IBaseParagraph + IBaseParagraph, PARAGRAPH_HIDDEN_FIELDS from pyams_content.component.paragraph.interfaces.contact import CONTACT_PARAGRAPH_TYPE, IContactParagraph from pyams_content.component.paragraph.zmi.interfaces import IParagraphContainerView, IParagraphInnerEditor from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION @@ -67,7 +67,7 @@ dialog_class = 'modal-large' icon_css_class = 'fa fa-fw fa-id-card-o' - fields = field.Fields(IContactParagraph).omit('__parent__', '__name__', 'visible') + fields = field.Fields(IContactParagraph).omit(*PARAGRAPH_HIDDEN_FIELDS) edit_permission = MANAGE_CONTENT_PERMISSION def create(self, data): @@ -89,7 +89,7 @@ legend = _("Edit contact card properties") icon_css_class = 'fa fa-fw fa-id-card-o' - fields = field.Fields(IContactParagraph).omit('__parent__', '__name__', 'visible') + fields = field.Fields(IContactParagraph).omit(*PARAGRAPH_HIDDEN_FIELDS) fields['renderer'].widgetFactory = RendererFieldWidget edit_permission = MANAGE_CONTENT_PERMISSION