Skip to content

Commit 0d57cb0

Browse files
committed
Changelog & docs for #3766
1 parent 53804d3 commit 0d57cb0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/additional-features/custom-scripts.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ An IPv4 or IPv6 network with a mask. Returns a `netaddr.IPNetwork` object. Two a
177177

178178
All variables support the following default options:
179179

180-
* `label` - The name of the form field
181-
* `description` - A brief description of the field
182180
* `default` - The field's default value
181+
* `description` - A brief description of the field
182+
* `label` - The name of the form field
183183
* `required` - Indicates whether the field is mandatory (default: true)
184+
* `widget` - The class of form widget to use (see the [Django documentation](https://docs.djangoproject.com/en/stable/ref/forms/widgets/))
184185

185186
## Example
186187

docs/release-notes/version-2.7.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Enhancements
44

5+
* [#3766](https://github.com/netbox-community/netbox/issues/3766) - Allow custom script authors to specify the form widget for each variable
56
* [#3799](https://github.com/netbox-community/netbox/issues/3799) - Greatly improve performance when ordering device components
67
* [#3986](https://github.com/netbox-community/netbox/issues/3986) - Include position numbers in SVG image when rendering rack elevation
78
* [#4100](https://github.com/netbox-community/netbox/issues/4100) - Add device filter to component list views

0 commit comments

Comments
 (0)