Skip to content

Commit

Permalink
django-cms#336 bugfix from link_menu_item to modal_menu_item: discard…
Browse files Browse the repository at this point in the history
… changes link
  • Loading branch information
svandeneertwegh committed Oct 31, 2023
1 parent c16c177 commit a126f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_versioning/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a126f61

Please sign in to comment.