File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
from datasources .models import SourceSubdivision
5
5
from signals .models import (
6
+ ActiveChoices ,
6
7
FormatChoices ,
7
8
Pathogen ,
8
9
Signal ,
9
10
TimeLabelChoices ,
10
- ActiveChoices
11
11
)
12
12
13
13
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):
26
26
required = False ,
27
27
)
28
28
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 ())
30
30
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 ( ))
34
34
35
35
class Meta :
36
36
model = Signal
You can’t perform that action at this time.
0 commit comments