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 <[email protected]>
This commit is contained in:
1 parent
66a9174859
commit
f0d62bafd9
1 file changed
+1
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user