From a98b6a6fdff33b88ff12af45e5b088de8955039b Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Tue, 27 Aug 2024 09:04:13 -0700 Subject: [PATCH] 17186 change choice to default --- netbox/extras/templatetags/custom_links.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/extras/templatetags/custom_links.py b/netbox/extras/templatetags/custom_links.py index a961c4ea7..feb12fd9a 100644 --- a/netbox/extras/templatetags/custom_links.py +++ b/netbox/extras/templatetags/custom_links.py @@ -4,6 +4,7 @@ from django.utils.safestring import mark_safe from core.models import ObjectType from extras.models import CustomLink +from netbox.choices import ButtonColorChoices register = template.Library() @@ -61,7 +62,7 @@ def custom_links(context, obj): else: try: if rendered := cl.render(link_context): - if cl.button_class == "default": + if cl.button_class == ButtonColorChoices.DEFAULT: button_class = 'outline-secondary' else: button_class = cl.button_class