Updated AJAX view context
authorThierry Florac <thierry.florac@onf.fr>
Mon, 11 Jun 2018 14:42:50 +0200
changeset 608 03a373d91db5
parent 607 5f4b5b3d5d0d
child 609 375ab52043d6
Updated AJAX view context
src/pyams_content/component/paragraph/zmi/milestone.py
--- a/src/pyams_content/component/paragraph/zmi/milestone.py	Mon Jun 11 14:42:25 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/milestone.py	Mon Jun 11 14:42:50 2018 +0200
@@ -304,7 +304,7 @@
 
 @pagelet_config(name='add-milestone.html', context=IMilestoneContainerTarget, layer=IPyAMSLayer,
                 permission=MANAGE_CONTENT_PERMISSION)
-@ajax_config(name='add-milestone.json', context=IParagraphContainerTarget, layer=IPyAMSLayer,
+@ajax_config(name='add-milestone.json', context=IMilestoneContainerTarget, layer=IPyAMSLayer,
              base=AJAXAddForm)
 class MilestoneAddForm(AdminDialogAddForm):
     """Milestone add form"""