mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Fixes #2762: Add missing DCIM field values to API _choices endpoint
This commit is contained in:
parent
f7f6704fc1
commit
73a1d6a7ba
@ -12,6 +12,7 @@ v2.5.3 (FUTURE)
|
|||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
||||||
* [#2742](https://github.com/digitalocean/netbox/issues/2742) - Preserve cluster assignment when editing a device
|
* [#2742](https://github.com/digitalocean/netbox/issues/2742) - Preserve cluster assignment when editing a device
|
||||||
|
* [#2762](https://github.com/digitalocean/netbox/issues/2762) - Add missing DCIM field values to API `_choices` endpoint
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -35,13 +35,18 @@ from .exceptions import MissingFilterException
|
|||||||
|
|
||||||
class DCIMFieldChoicesViewSet(FieldChoicesViewSet):
|
class DCIMFieldChoicesViewSet(FieldChoicesViewSet):
|
||||||
fields = (
|
fields = (
|
||||||
(Cable, ['length_unit']),
|
(Cable, ['length_unit', 'status', 'type']),
|
||||||
(Device, ['face', 'status']),
|
|
||||||
(ConsolePort, ['connection_status']),
|
(ConsolePort, ['connection_status']),
|
||||||
(Interface, ['connection_status', 'form_factor', 'mode']),
|
(Device, ['face', 'status']),
|
||||||
|
(DeviceType, ['subdevice_role']),
|
||||||
|
(FrontPort, ['type']),
|
||||||
|
(FrontPortTemplate, ['type']),
|
||||||
|
(Interface, ['form_factor', 'mode']),
|
||||||
(InterfaceTemplate, ['form_factor']),
|
(InterfaceTemplate, ['form_factor']),
|
||||||
(PowerPort, ['connection_status']),
|
(PowerPort, ['connection_status']),
|
||||||
(Rack, ['outer_unit', 'status', 'type', 'width']),
|
(Rack, ['outer_unit', 'status', 'type', 'width']),
|
||||||
|
(RearPort, ['type']),
|
||||||
|
(RearPortTemplate, ['type']),
|
||||||
(Site, ['status']),
|
(Site, ['status']),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user