Skip to content

Commit

Permalink
Fix: flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Nov 12, 2023
1 parent d8248cf commit 7907064
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions djangocms_alias/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ 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],
)

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,
Expand Down

0 comments on commit 7907064

Please sign in to comment.