Skip to content

Commit

Permalink
fix ruff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed May 17, 2024
1 parent 23c5e6f commit d1633b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_versioning/plugin_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def render_plugin(self, instance, context, placeholder=None, editable=False):
prefetch_versioned_related_objects(instance, self.toolbar)
return super().render_plugin(instance, context, placeholder, editable)

if cms_version == "4.1.0" or cms_version == "4.1.1":
if cms_version in ("4.1.0", "4.1.1"):
# Only needed for CMS 4.1.0 and 4.1.1 which have fix #7952 not merged
# With #7952, page-specific rendering works well with versioning.
def render_obj_placeholder(
Expand Down

0 comments on commit d1633b6

Please sign in to comment.