Closes #4885: Add MultiChoiceVar for custom scripts

This commit is contained in:
Jeremy Stretch
2020-08-11 13:23:39 -04:00
parent 8709c50a9e
commit 3c395e7c9f
4 changed files with 54 additions and 9 deletions

View File

@@ -154,6 +154,10 @@ CHOICES = (
direction = ChoiceVar(choices=CHOICES)
```
### MultiChoiceVar
Similar to `ChoiceVar`, but allows for the selection of multiple choices.
### ObjectVar
A NetBox object of a particular type, identified by the associated queryset. Most models will utilize the REST API to retrieve available options: Note that any filtering on the queryset in this case has no effect.