1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #3384: Maximum and allocated draw fields should be included on power port template creation form

This commit is contained in:
Jeremy Stretch
2019-08-02 09:56:02 -04:00
parent 025f77dcdc
commit ea9492d4bd
3 changed files with 12 additions and 1 deletions

View File

@@ -978,6 +978,16 @@ class PowerPortTemplateCreateForm(ComponentForm):
name_pattern = ExpandableNameField(
label='Name'
)
maximum_draw = forms.IntegerField(
min_value=1,
required=False,
help_text="Maximum current draw (watts)"
)
allocated_draw = forms.IntegerField(
min_value=1,
required=False,
help_text="Allocated current draw (watts)"
)
class PowerOutletTemplateForm(BootstrapMixin, forms.ModelForm):