From 7b7c0ab381e5db0a68d1e9abe97b36954cfe88d5 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Mon, 4 Nov 2024 14:13:12 +0100 Subject: [PATCH] Update django-cms dependency --- djangocms_link/apps.py | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/djangocms_link/apps.py b/djangocms_link/apps.py index f1b12fa4..d20ecfc0 100644 --- a/djangocms_link/apps.py +++ b/djangocms_link/apps.py @@ -15,9 +15,9 @@ def ready(self): from djangocms_link import admin as link_admin - link_model_setting = getattr(settings, "DJANGOCMS_LINKABLE_MODELS", "auto") + linkable_models = getattr(settings, "DJANGOCMS_LINKABLE_MODELS", "auto") - if link_model_setting == "auto": # pragma: no cover + if linkable_models == "auto": # pragma: no cover # Autoconfig? Check the admin registry for suitable admins link_admin.REGISTERED_ADMIN = [] for _admin in admin.site._registry.values(): @@ -31,7 +31,7 @@ def ready(self): else: # turn model config into model admin instances admins = [] - for model in link_model_setting: + for model in linkable_models: if isinstance(model, str): model = apps.get_model(model) if not hasattr(model, "get_absolute_url"): # pragma: no cover diff --git a/setup.py b/setup.py index c4e57019..ca9a3e6c 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ REQUIREMENTS = [ - 'django-cms>=3.7', + 'django-cms>=3.7,!=4.1.0,!=4.1.1,!=4.1.2', 'djangocms-attributes-field>=1', ]