From 7907064155e1283e56572aee53ca6fb61bd4249f Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Sun, 12 Nov 2023 17:16:30 +0100 Subject: [PATCH] Fix: flake8 errors --- djangocms_alias/cms_plugins.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/djangocms_alias/cms_plugins.py b/djangocms_alias/cms_plugins.py index 0776e171..ab11493a 100644 --- a/djangocms_alias/cms_plugins.py +++ b/djangocms_alias/cms_plugins.py @@ -42,7 +42,7 @@ def get_render_template(self, context, instance, placeholder): @classmethod def get_extra_plugin_menu_items(cls, request, plugin): if plugin.plugin_type == cls.__name__: - alias_content = plugin.alias.get_content() + alias_content = plugin.alias.get_content() detach_endpoint = admin_reverse( DETACH_ALIAS_PLUGIN_URL_NAME, args=[plugin.pk], @@ -50,14 +50,14 @@ def get_extra_plugin_menu_items(cls, request, plugin): plugin_menu_items = [] if alias_content: - plugin_menu_items.append( + plugin_menu_items.append( PluginMenuItem( _('Edit Alias'), get_object_edit_url(alias_content), action='', attributes={'cms-icon': 'alias'}, ), - ) + ) if cls.can_detach( request.user,