From 3faf6dfbacc014343258033184cbc56b12210dff Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 22 Jul 2024 10:21:19 -0400 Subject: [PATCH] Update logic for determining whether to display plugin installation instructions --- netbox/core/views.py | 1 - netbox/templates/core/plugin.html | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/netbox/core/views.py b/netbox/core/views.py index 88821de75..d58c55833 100644 --- a/netbox/core/views.py +++ b/netbox/core/views.py @@ -686,5 +686,4 @@ class PluginView(UserPassesTestMixin, View): return render(request, 'core/plugin.html', { 'plugin': plugin, 'table': table, - 'show_install': settings.RELEASE.edition == 'Community' }) diff --git a/netbox/templates/core/plugin.html b/netbox/templates/core/plugin.html index 42d912b81..733a0b093 100644 --- a/netbox/templates/core/plugin.html +++ b/netbox/templates/core/plugin.html @@ -35,7 +35,7 @@ {% trans "Version history" %} - {% if show_install %} + {% if 'commercial' not in settings.RELEASE.features %}