From 244d7667a99b28d1dc1dba5642b3c3f2c2710a3f Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Thu, 29 Aug 2024 15:02:53 +0200 Subject: [PATCH] Update monkeypatch.py --- djangocms_moderation/monkeypatch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/djangocms_moderation/monkeypatch.py b/djangocms_moderation/monkeypatch.py index a439850e..36745051 100644 --- a/djangocms_moderation/monkeypatch.py +++ b/djangocms_moderation/monkeypatch.py @@ -152,5 +152,8 @@ def inner(self, obj, request): _("Cannot edit a version in an active moderation collection") ) ] +models.Version.check_publish = [ + lambda version, user: raise ConditionFailed(_("Content cannot be published directly. Use the moderation process.")) +] fields.PlaceholderRelationField.default_checks += [_is_placeholder_review_unlocked]