From a126f612f1765e174211972df5a8b50dc19ef3b9 Mon Sep 17 00:00:00 2001 From: Stefan van den Eertwegh Date: Tue, 31 Oct 2023 12:15:51 +0100 Subject: [PATCH] #336 bugfix from link_menu_item to modal_menu_item: discard changes link --- djangocms_versioning/cms_toolbars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_versioning/cms_toolbars.py b/djangocms_versioning/cms_toolbars.py index d4fed366..6406ed14 100644 --- a/djangocms_versioning/cms_toolbars.py +++ b/djangocms_versioning/cms_toolbars.py @@ -222,7 +222,7 @@ def _add_versioning_menu(self): # Discard changes menu entry (wrt to source) if version.check_discard.as_bool(self.request.user): # pragma: no cover versioning_menu.add_item(Break()) - versioning_menu.add_link_item( + versioning_menu.add_modal_item( _("Discard Changes"), url=reverse( f"admin:{proxy_model._meta.app_label}_{proxy_model.__name__.lower()}_discard",