Skip to content

Commit 9c88494

Browse files
committed
even simpler
1 parent 1befa4c commit 9c88494

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

djangocms_alias/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ def get_versionable_item(cms_config) -> type | None:
1010
return None
1111

1212

13-
@cache
1413
def is_versioning_enabled() -> bool:
1514
"""
1615
is_versioning_enabled returns True if djangocms-alias has registered itself
1716
for verisoning
1817
"""
1918
cms_config = apps.get_app_config("djangocms_alias").cms_config
20-
return hasattr(cms_config, "versioning") and bool(cms_config.versioning)
19+
return bool(getattr(cms_config, "versioning", False))
2120

2221

2322
def emit_content_change(objs, sender=None):

0 commit comments

Comments
 (0)