Skip to content

Commit

Permalink
fix: flake8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Yu committed Nov 18, 2024
1 parent ae30438 commit 83b4df1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions djangocms_pageadmin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 83b4df1

Please sign in to comment.