From db1357fa24f5cb28ea2940e467d743b738e67231 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 1 May 2023 16:21:30 +0200 Subject: [PATCH] Disable inline panels to prevent unintended deletions --- server/books/models/module.py | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/server/books/models/module.py b/server/books/models/module.py index 91a8c8fa..8c413d0a 100644 --- a/server/books/models/module.py +++ b/server/books/models/module.py @@ -38,26 +38,26 @@ class Module(StrictHierarchyPage): FieldPanel("hero_source"), FieldPanel("teaser"), FieldPanel("intro"), - InlinePanel( - "assignments", - label=_("Assignment"), - classname="collapsed", - heading=_("linked assignments"), - help_text=_( - "These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here." - ) - % _("assignments"), - ), - InlinePanel( - "surveys", - heading=_("linked surveys"), - label=_("Survey"), - classname="collapsed", - help_text=_( - "These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here." - ) - % _("surveys"), - ), + # InlinePanel( + # "assignments", + # label=_("Assignment"), + # classname="collapsed", + # heading=_("linked assignments"), + # help_text=_( + # "These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here." + # ) + # % _("assignments"), + # ), + # InlinePanel( + # "surveys", + # heading=_("linked surveys"), + # label=_("Survey"), + # classname="collapsed", + # help_text=_( + # "These %s are automatically linked, they are shown here only to provide an overview. Please don't change anything here." + # ) + # % _("surveys"), + # ), ] edit_handler = TabbedInterface(