src/pyams_content/component/illustration/zmi/paragraph.py
changeset 407 0ef5de2d5674
parent 406 5527bc086216
child 410 c57d834bd88a
--- a/src/pyams_content/component/illustration/zmi/paragraph.py	Thu Feb 22 12:00:05 2018 +0100
+++ b/src/pyams_content/component/illustration/zmi/paragraph.py	Thu Feb 22 15:58:28 2018 +0100
@@ -18,7 +18,8 @@
 # import interfaces
 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, \
     IParagraphContainer, IParagraphPreview
-from pyams_content.component.illustration.interfaces import IIllustration, IIllustrationParagraph
+from pyams_content.component.illustration.interfaces import IIllustration, IIllustrationParagraph, \
+    ILLUSTRATION_PARAGRAPH_TYPE
 from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor, IParagraphContainerView
 from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
 from pyams_form.interfaces.form import IInnerForm, IEditFormButtons
@@ -56,7 +57,7 @@
     label = _("Add illustration...")
     label_css_class = 'fa fa-fw fa-file-image-o'
     url = 'add-illustration.html'
-    paragraph_type = 'Illustration'
+    paragraph_type = ILLUSTRATION_PARAGRAPH_TYPE
 
 
 @pagelet_config(name='add-illustration.html', context=IParagraphContainerTarget, layer=IPyAMSLayer,