mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 12:06:53 -06:00
Fixes #4134: Device power ports and outlets should inherit type from the parent device type
This commit is contained in:
parent
ec53e1c74c
commit
009c0ba31c
@ -17,6 +17,7 @@
|
|||||||
* [#4091](https://github.com/netbox-community/netbox/issues/4091) - Fix filtering of objects by custom fields using UI search form
|
* [#4091](https://github.com/netbox-community/netbox/issues/4091) - Fix filtering of objects by custom fields using UI search form
|
||||||
* [#4099](https://github.com/netbox-community/netbox/issues/4099) - Linkify interfaces on global interfaces list
|
* [#4099](https://github.com/netbox-community/netbox/issues/4099) - Linkify interfaces on global interfaces list
|
||||||
* [#4108](https://github.com/netbox-community/netbox/issues/4108) - Avoid extraneous database queries when rendering search forms
|
* [#4108](https://github.com/netbox-community/netbox/issues/4108) - Avoid extraneous database queries when rendering search forms
|
||||||
|
* [#4134](https://github.com/netbox-community/netbox/issues/4134) - Device power ports and outlets should inherit type from the parent device type
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -168,6 +168,7 @@ class PowerPortTemplate(ComponentTemplateModel):
|
|||||||
return PowerPort(
|
return PowerPort(
|
||||||
device=device,
|
device=device,
|
||||||
name=self.name,
|
name=self.name,
|
||||||
|
type=self.type,
|
||||||
maximum_draw=self.maximum_draw,
|
maximum_draw=self.maximum_draw,
|
||||||
allocated_draw=self.allocated_draw
|
allocated_draw=self.allocated_draw
|
||||||
)
|
)
|
||||||
@ -232,6 +233,7 @@ class PowerOutletTemplate(ComponentTemplateModel):
|
|||||||
return PowerOutlet(
|
return PowerOutlet(
|
||||||
device=device,
|
device=device,
|
||||||
name=self.name,
|
name=self.name,
|
||||||
|
type=self.type,
|
||||||
power_port=power_port,
|
power_port=power_port,
|
||||||
feed_leg=self.feed_leg
|
feed_leg=self.feed_leg
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user