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

Cable.status to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-12-10 09:55:10 -05:00
parent 086813fc3e
commit 12657ebd7c
8 changed files with 55 additions and 13 deletions

View File

@@ -3427,7 +3427,7 @@ class CableCSVForm(forms.ModelForm):
# Cable attributes
status = CSVChoiceField(
choices=CONNECTION_STATUS_CHOICES,
choices=CableStatusChoices,
required=False,
help_text='Connection status'
)
@@ -3523,7 +3523,7 @@ class CableBulkEditForm(BootstrapMixin, BulkEditForm):
widget=StaticSelect2()
)
status = forms.ChoiceField(
choices=add_blank_choice(CONNECTION_STATUS_CHOICES),
choices=add_blank_choice(CableStatusChoices),
required=False,
widget=StaticSelect2(),
initial=''
@@ -3597,7 +3597,7 @@ class CableFilterForm(BootstrapMixin, forms.Form):
)
status = forms.ChoiceField(
required=False,
choices=add_blank_choice(CONNECTION_STATUS_CHOICES),
choices=add_blank_choice(CableStatusChoices),
widget=StaticSelect2()
)
color = forms.CharField(