Skip to content

Commit

Permalink
Fix: restore v3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Nov 1, 2024
1 parent e30fcec commit 00c121f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_link/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_reference(self, request):
app, model = model_str.split(".")
model = apps.get_model(app, model)
model_admin = self.admin_site._registry.get(model)
if model_str == "cms.page" or model_admin is None:
if model_str == "cms.page" and _version >= 4 or model_admin is None:
obj = get_manager(model).get(pk=pk)
if model_str == "cms.page":
language = get_language_from_request(request)
Expand Down

0 comments on commit 00c121f

Please sign in to comment.