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

Cable.length_unit to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-11-25 20:40:29 -05:00
parent 79a40e22c9
commit 4846557d61
6 changed files with 61 additions and 14 deletions

View File

@@ -3149,7 +3149,7 @@ class CableCSVForm(forms.ModelForm):
help_text='Cable type'
)
length_unit = CSVChoiceField(
choices=CABLE_LENGTH_UNIT_CHOICES,
choices=CableLengthUnitChoices,
required=False,
help_text='Length unit'
)
@@ -3254,7 +3254,7 @@ class CableBulkEditForm(BootstrapMixin, BulkEditForm):
required=False
)
length_unit = forms.ChoiceField(
choices=add_blank_choice(CABLE_LENGTH_UNIT_CHOICES),
choices=add_blank_choice(CableLengthUnitChoices),
required=False,
initial='',
widget=StaticSelect2()