Skip to content

Commit 7bd9c27

Browse files
committed
Update conf
1 parent 166387d commit 7bd9c27

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

djangocms_versioning/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
ENABLE_MENU_REGISTRATION = getattr(
55
settings, "DJANGOCMS_VERSIONING_ENABLE_MENU_REGISTRATION", CMS_VERSION <= "4.1.0"
66
)
7+
if CMS_VERSION.startswith("5."):
8+
ENABLE_MENU_REGISTRATION = False
79

810
USERNAME_FIELD = getattr(
911
settings, "DJANGOCMS_VERSIONING_USERNAME_FIELD", "username"

test_settings.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@
5151

5252
def run():
5353
from app_helper import runner
54-
from cms import __version__ as cms_version
55-
56-
if cms_version.startswith("5."):
57-
HELPER_SETTINGS["DJANGOCMS_VERSIONING_ENABLE_MENU_REGISTRATION"] = False
5854

5955
runner.cms("djangocms_versioning", extra_args=[])
6056

0 commit comments

Comments
 (0)