From f0d62bafd9016d340c67b9c2bbd96bce3da296cc Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 16 Sep 2026 09:18:44 +0200 Subject: [PATCH] Fix ImportError: ButtonColorChoices lives in netbox.choices ButtonColorChoices is defined in netbox/netbox/choices.py, not utilities/choices.py (which only has the generic ChoiceSet base). Cross-checked every other NetBox-internal import in the plugin against the actual v4.6.8 source (dcim, netbox, tenancy, utilities packages) to rule out further path mistakes; all others were already correct. Co-Authored-By: Claude Sonnet 5 --- netbox_rack_concept/navigation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_rack_concept/navigation.py b/netbox_rack_concept/navigation.py index 416e0a7..c420717 100644 --- a/netbox_rack_concept/navigation.py +++ b/netbox_rack_concept/navigation.py @@ -1,7 +1,7 @@ from django.utils.translation import gettext_lazy as _ +from netbox.choices import ButtonColorChoices from netbox.plugins import PluginMenu, PluginMenuButton, PluginMenuItem -from utilities.choices import ButtonColorChoices concept_buttons = [ PluginMenuButton(