mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Fixes #3136: Add power draw fields to power port creation form
This commit is contained in:
parent
250f310a98
commit
d4db04c649
@ -6,6 +6,7 @@ v2.6.0 (FUTURE)
|
||||
* [#3125](https://github.com/digitalocean/netbox/issues/3125) - Fix exception when viewing PDUs
|
||||
* [#3126](https://github.com/digitalocean/netbox/issues/3126) - Incorrect calculation of PowerFeed available power
|
||||
* [#3130](https://github.com/digitalocean/netbox/issues/3130) - Fix exception when creating a new power outlet
|
||||
* [#3136](https://github.com/digitalocean/netbox/issues/3136) - Add power draw fields to power port creation form
|
||||
|
||||
|
||||
---
|
||||
|
@ -1971,6 +1971,16 @@ class PowerPortCreateForm(ComponentForm):
|
||||
name_pattern = ExpandableNameField(
|
||||
label='Name'
|
||||
)
|
||||
maximum_draw = forms.IntegerField(
|
||||
min_value=1,
|
||||
required=False,
|
||||
help_text="Maximum draw in watts"
|
||||
)
|
||||
allocated_draw = forms.IntegerField(
|
||||
min_value=1,
|
||||
required=False,
|
||||
help_text="Allocated draw in watts"
|
||||
)
|
||||
description = forms.CharField(
|
||||
max_length=100,
|
||||
required=False
|
||||
|
Loading…
Reference in New Issue
Block a user