You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/additional-features/custom-scripts.md
-6
Original file line number
Diff line number
Diff line change
@@ -170,14 +170,9 @@ Similar to `ChoiceVar`, but allows for the selection of multiple choices.
170
170
A particular object within NetBox. Each ObjectVar must specify a particular model, and allows the user to select one of the available instances. ObjectVar accepts several arguments, listed below.
171
171
172
172
*`model` - The model class
173
-
*`display_field` - The name of the REST API object field to display in the selection list (default: `'display'`)
174
173
*`query_params` - A dictionary of query parameters to use when retrieving available options (optional)
175
174
*`null_option` - A label representing a "null" or empty choice (optional)
176
175
177
-
!!! warning
178
-
The `display_field` parameter is now deprecated, and will be removed in NetBox v2.12. All ObjectVar instances will
179
-
instead use the new standard `display` field for all serializers (introduced in NetBox v2.11).
180
-
181
176
To limit the selections available within the list, additional query parameters can be passed as the `query_params` dictionary. For example, to show only devices with an "active" status:
182
177
183
178
```python
@@ -288,7 +283,6 @@ class NewBranchScript(Script):
0 commit comments