src/pyams_content/component/gallery/zmi/paragraph.py
changeset 407 0ef5de2d5674
parent 406 5527bc086216
child 415 43f42d74cdb8
--- a/src/pyams_content/component/gallery/zmi/paragraph.py	Thu Feb 22 12:00:05 2018 +0100
+++ b/src/pyams_content/component/gallery/zmi/paragraph.py	Thu Feb 22 15:58:28 2018 +0100
@@ -16,7 +16,7 @@
 # import standard library
 
 # import interfaces
-from pyams_content.component.gallery.interfaces import IGalleryParagraph, IBaseGallery
+from pyams_content.component.gallery.interfaces import IGalleryParagraph, IBaseGallery, GALLERY_PARAGRAPH_TYPE
 from pyams_content.component.gallery.zmi.interfaces import IGalleryContentsView
 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \
     IParagraphPreview
@@ -57,7 +57,7 @@
     label = _("Add medias gallery...")
     label_css_class = 'fa fa-fw fa-picture-o'
     url = 'add-gallery.html'
-    paragraph_type = 'Gallery'
+    paragraph_type = GALLERY_PARAGRAPH_TYPE
 
 
 @pagelet_config(name='add-gallery.html', context=IParagraphContainerTarget, layer=IPyAMSLayer,