Skip to content

Commit 9ba09c8

Browse files
committed
🛠️ forms.py -> Updated pathogen, format_type, source, and time_label fields in SignalFilterForm
1 parent 8861f14 commit 9ba09c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/signals/forms.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
from datasources.models import SourceSubdivision
55
from signals.models import (
6+
ActiveChoices,
67
FormatChoices,
78
Pathogen,
89
Signal,
910
TimeLabelChoices,
10-
ActiveChoices
1111
)
1212

1313
MULTI_SELECT_TOOLTIP_MESSAGE = _('Hold down “Control”, or “Command” on a Mac, to select more than one.')
@@ -26,11 +26,11 @@ class SignalFilterForm(forms.ModelForm):
2626
required=False,
2727
)
2828
search = forms.CharField(min_length=3)
29-
pathogen = forms.ModelChoiceField(queryset=Pathogen.objects.all(), widget=forms.CheckboxSelectMultiple(), empty_label='---------')
29+
pathogen = forms.ModelChoiceField(queryset=Pathogen.objects.all(), widget=forms.CheckboxSelectMultiple())
3030
active = forms.TypedMultipleChoiceField(choices=ActiveChoices.choices, coerce=bool, widget=forms.CheckboxSelectMultiple())
31-
format_type = forms.ChoiceField(choices=[('', '---------')] + FormatChoices.choices)
32-
source = forms.ModelChoiceField(queryset=SourceSubdivision.objects.all(), empty_label='---------')
33-
time_label = forms.ChoiceField(choices=[('', '---------')] + TimeLabelChoices.choices, label=_('Temporal Resolution'))
31+
format_type = forms.ChoiceField(choices=FormatChoices.choices, widget=forms.CheckboxSelectMultiple())
32+
source = forms.ModelChoiceField(queryset=SourceSubdivision.objects.all(), widget=forms.CheckboxSelectMultiple())
33+
time_label = forms.ChoiceField(choices=TimeLabelChoices.choices, widget=forms.CheckboxSelectMultiple())
3434

3535
class Meta:
3636
model = Signal

0 commit comments

Comments
 (0)