We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1befa4c commit 9c88494Copy full SHA for 9c88494
djangocms_alias/utils.py
@@ -10,14 +10,13 @@ def get_versionable_item(cms_config) -> type | None:
10
return None
11
12
13
-@cache
14
def is_versioning_enabled() -> bool:
15
"""
16
is_versioning_enabled returns True if djangocms-alias has registered itself
17
for verisoning
18
19
cms_config = apps.get_app_config("djangocms_alias").cms_config
20
- return hasattr(cms_config, "versioning") and bool(cms_config.versioning)
+ return bool(getattr(cms_config, "versioning", False))
21
22
23
def emit_content_change(objs, sender=None):
0 commit comments