From 5e7fccb64e2a28e31406a4a0961dd6d18a872eee Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 1 Nov 2018 10:14:47 -0400 Subject: [PATCH] Add blank choice to ColorSelect widget --- netbox/utilities/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/utilities/forms.py b/netbox/utilities/forms.py index b9b04a337..e4a8062f0 100644 --- a/netbox/utilities/forms.py +++ b/netbox/utilities/forms.py @@ -209,7 +209,7 @@ class ColorSelect(forms.Select): option_template_name = 'widgets/colorselect_option.html' def __init__(self, *args, **kwargs): - kwargs['choices'] = COLOR_CHOICES + kwargs['choices'] = add_blank_choice(COLOR_CHOICES) super(ColorSelect, self).__init__(*args, **kwargs)