Skip to content
Discussion options

You must be logged in to vote

You need to import the Device model:

from dcim.models import Device

You can refer to the example at the bottom of the docs:

https://demo.netbox.dev/static/docs/customization/custom-scripts/

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@adparis99
Comment options

@adparis99
Comment options

@kkthxbye-code
Comment options

@candlerb
Comment options

Answer selected by adparis99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants