Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
FreemanPancake committed Nov 19, 2024
1 parent 6367dd8 commit 005cda9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions djangocms_version_locking/monkeypatch/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ def _get_manage_versions_link(self, obj, request, disabled=False):
This will enable burger menu feature for ModelAdmin inherits from
VersionAdmin, ExtendedVersionAdminMixin, GrouperModelAdmin.
"""
ChangeListActionsMixin.Media.css["all"]+=(static_with_version("cms/css/cms.pagetree.css"), "djangocms_version_locking/css/actions.css",)
ChangeListActionsMixin.Media.js+=("admin/js/jquery.init.js", "djangocms_version_locking/js/actions.js",)
ChangeListActionsMixin.Media.css["all"] += (
static_with_version("cms/css/cms.pagetree.css"),
"djangocms_version_locking/css/actions.css",
)
ChangeListActionsMixin.Media.js += ("admin/js/jquery.init.js", "djangocms_version_locking/js/actions.js",)

ExtendedVersionAdminMixin._get_manage_versions_link = _get_manage_versions_link
ExtendedVersionAdminMixin.get_actions_list = _get_actions_list(ExtendedVersionAdminMixin.get_actions_list)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from django.urls import reverse
from django.utils.translation import gettext_lazy as _

from cms.utils.urlutils import static_with_version

from djangocms_alias.admin import AliasAdmin as OriginalAliasAdmin
from djangocms_alias.models import Alias
from djangocms_versioning.constants import DRAFT, PUBLISHED
Expand Down

0 comments on commit 005cda9

Please sign in to comment.