diff --git a/djangocms_link/admin.py b/djangocms_link/admin.py index cee8581f..c0f18120 100644 --- a/djangocms_link/admin.py +++ b/djangocms_link/admin.py @@ -179,7 +179,7 @@ class LinkAdmin(admin.ModelAdmin): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.link_url_name = f"{self.opts.app_label}_{self.opts.model_name}_urls" + self.global_link_url_name = f"{self.opts.app_label}_{self.opts.model_name}_urls" def has_module_permission(self, request): # pragma: no cover # Remove from admin @@ -190,7 +190,7 @@ def get_urls(self): return [ path("urls", self.admin_site.admin_view(self.url_view), - name=self.link_url_name + name=self.global_link_url_name ), ] diff --git a/djangocms_link/cms_plugins.py b/djangocms_link/cms_plugins.py index 4ae62a7c..5c929007 100644 --- a/djangocms_link/cms_plugins.py +++ b/djangocms_link/cms_plugins.py @@ -12,6 +12,13 @@ class LinkPlugin(CMSPluginBase): model = Link name = _('Link') text_enabled = True + text_icon = ( + '' + ) allow_children = True fieldsets = [