Skip to content

Commit

Permalink
Fix v3 compat with GrouperModelAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 26, 2024
1 parent ed6fe60 commit f3c2b13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion djangocms_link/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from django.views.generic.list import BaseListView

from cms import __version__
from cms.admin.utils import GrouperModelAdmin
from cms.models import Page
from cms.utils import get_language_from_request

Expand All @@ -17,10 +16,13 @@

_version = int(__version__.split(".")[0])
if _version >= 4:
from cms.admin.utils import GrouperModelAdmin
from cms.models import PageContent
else:
from cms.models import Title as PageContent

class GrouperModelAdmin:
pass

REGISTERED_ADMIN = []

Expand Down

0 comments on commit f3c2b13

Please sign in to comment.