Skip to content

Commit 2aaadc2

Browse files
ci: auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
1 parent 93d9262 commit 2aaadc2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

djangocms_alias/cms_plugins.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ def detach_alias_plugin(cls, plugin, language):
152152
plugin_position = plugin.position
153153
target_placeholder.delete_plugin(plugin)
154154
if source_plugins:
155-
if target_last_plugin := target_placeholder.get_last_plugin(
156-
plugin.language
157-
):
155+
if target_last_plugin := target_placeholder.get_last_plugin(plugin.language):
158156
target_placeholder._shift_plugin_positions(
159157
language,
160158
start=plugin_position,

0 commit comments

Comments
 (0)