Skip to content

Commit

Permalink
Update django-cms dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Nov 4, 2024
1 parent 9c7d0de commit 7b7c0ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions djangocms_link/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]

Expand Down

0 comments on commit 7b7c0ab

Please sign in to comment.