From 83b4df192a78a1676b3cf29fb5efa81f011884c5 Mon Sep 17 00:00:00 2001 From: Josh Yu Date: Mon, 18 Nov 2024 17:12:01 +0800 Subject: [PATCH] fix: flake8 issue --- djangocms_pageadmin/admin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/djangocms_pageadmin/admin.py b/djangocms_pageadmin/admin.py index c1b6c7b..bb9638c 100644 --- a/djangocms_pageadmin/admin.py +++ b/djangocms_pageadmin/admin.py @@ -27,7 +27,6 @@ from cms.toolbar.utils import get_object_preview_url from djangocms_versioning.admin import VersioningAdminMixin -from djangocms_versioning.conf import LOCK_VERSIONS from djangocms_versioning.constants import DRAFT, PUBLISHED from djangocms_versioning.helpers import version_list_url from djangocms_versioning.models import Version @@ -94,8 +93,7 @@ def get_queryset(self, request): draft_sub = Subquery(draft_version_lock_subquery.values("locked_by")[:1]) select_related_tuple = ("created_by", "locked_by") else: - from djangocms_version_locking.models import \ - VersionLock # noqa: F401 + from djangocms_version_locking.models import VersionLock # noqa: F401 draft_version_lock_subquery = VersionLock.objects.filter( version__content_type=OuterRef("content_type"), version__object_id=OuterRef("object_id"),