src/pyams_content/component/illustration/interfaces/__init__.py
changeset 179 fb7c5f27e8a3
parent 140 67bad9f880ee
child 206 90e3fa165ce1
--- a/src/pyams_content/component/illustration/interfaces/__init__.py	Thu Sep 21 12:44:15 2017 +0200
+++ b/src/pyams_content/component/illustration/interfaces/__init__.py	Thu Sep 21 12:44:37 2017 +0200
@@ -56,7 +56,7 @@
 
     data = I18nThumbnailImageField(title=_("Image data"),
                                    description=_("Image content"),
-                                   required=True)
+                                   required=False)
 
     renderer = Choice(title=_("Image style"),
                       vocabulary='PyAMS illustration renderers')
@@ -74,3 +74,10 @@
 
 class IIllustrationParagraph(IIllustration, IBaseParagraph):
     """Illustration paragraph"""
+
+    data = I18nThumbnailImageField(title=_("Image data"),
+                                   description=_("Image content"),
+                                   required=True)
+
+    renderer = Choice(title=_("Image style"),
+                      vocabulary='PyAMS illustration renderers')