src/pyams_content/component/paragraph/zmi/frame.py
changeset 633 7ebe8a011c16
parent 591 b694d5667d17
child 842 7f0d72e427b1
--- a/src/pyams_content/component/paragraph/zmi/frame.py	Wed Jun 13 08:55:06 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/frame.py	Wed Jun 13 08:56:05 2018 +0200
@@ -16,7 +16,7 @@
 # import standard library
 
 # import interfaces
-from pyams_content.component.association.interfaces import IAssociationTarget
+from pyams_content.component.association.interfaces import IAssociationContainerTarget
 from pyams_content.component.association.zmi.interfaces import IAssociationsParentForm
 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer
 from pyams_content.component.paragraph.interfaces.frame import IFrameParagraph, FRAME_PARAGRAPH_TYPE
@@ -150,7 +150,7 @@
         output = super(self.__class__, self).get_ajax_output(changes)
         if 'body' in changes.get(IFrameParagraph, ()):
             # refresh associations count markers
-            parent = get_parent(self.context, IAssociationTarget)
+            parent = get_parent(self.context, IAssociationContainerTarget)
             output.setdefault('events', []).append(
                 get_json_paragraph_toolbar_refresh_event(parent, self.request,
                                                          ParagraphContainerTable, ParagraphTitleToolbarViewletManager))