mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #2622: Enable filtering cables by multiple types/colors
This commit is contained in:
@@ -2501,9 +2501,10 @@ class CableFilterForm(BootstrapMixin, forms.Form):
|
||||
annotate_field='type',
|
||||
required=False
|
||||
)
|
||||
color = forms.ChoiceField(
|
||||
choices=add_blank_choice(COLOR_CHOICES),
|
||||
widget=ColorSelect(),
|
||||
color = AnnotatedMultipleChoiceField(
|
||||
choices=COLOR_CHOICES,
|
||||
annotate=Cable.objects.all(),
|
||||
annotate_field='color',
|
||||
required=False
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user