From 005cda98fc46614f86c8e41ac9af140050c4abdf Mon Sep 17 00:00:00 2001 From: FreemanPancake Date: Tue, 19 Nov 2024 15:17:53 +0800 Subject: [PATCH] code format --- djangocms_version_locking/monkeypatch/admin.py | 7 +++++-- .../monkeypatch/djangocms_alias/admin.py | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/djangocms_version_locking/monkeypatch/admin.py b/djangocms_version_locking/monkeypatch/admin.py index 743ee8a..a077c63 100644 --- a/djangocms_version_locking/monkeypatch/admin.py +++ b/djangocms_version_locking/monkeypatch/admin.py @@ -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) diff --git a/djangocms_version_locking/monkeypatch/djangocms_alias/admin.py b/djangocms_version_locking/monkeypatch/djangocms_alias/admin.py index 6d5ead2..a39367d 100644 --- a/djangocms_version_locking/monkeypatch/djangocms_alias/admin.py +++ b/djangocms_version_locking/monkeypatch/djangocms_alias/admin.py @@ -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