Skip to content

Commit

Permalink
Update monkeypatch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Aug 29, 2024
1 parent f8f9e62 commit 244d766
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions djangocms_moderation/monkeypatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."))

Check failure on line 156 in djangocms_moderation/monkeypatch.py

View workflow job for this annotation

GitHub Actions / flake8

SyntaxError: invalid syntax
]

fields.PlaceholderRelationField.default_checks += [_is_placeholder_review_unlocked]

0 comments on commit 244d766

Please sign in to comment.