Updated base paragraph properties edit form prefix to avoid duplicated IDs
authorThierry Florac <thierry.florac@onf.fr>
Tue, 03 Apr 2018 16:59:57 +0200
changeset 510 ed78663fc764
parent 509 3fc5fed6105e
child 511 47e890a95d41
Updated base paragraph properties edit form prefix to avoid duplicated IDs
src/pyams_content/component/paragraph/zmi/__init__.py
--- a/src/pyams_content/component/paragraph/zmi/__init__.py	Tue Apr 03 16:59:18 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/__init__.py	Tue Apr 03 16:59:57 2018 +0200
@@ -151,6 +151,10 @@
     """Base paragraph edit form"""
 
     @property
+    def prefix(self):
+        return 'paragraph_{0}_form.'.format(self.context.__name__)
+
+    @property
     def title(self):
         registry = self.request.registry
         for parent in lineage(self.context):