File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class SignalFilterForm(forms.ModelForm):
28
28
search = forms .CharField (min_length = 3 )
29
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
- source = forms .ModelMultipleChoiceField ( queryset = SourceSubdivision .objects .all ( ), widget = forms .CheckboxSelectMultiple ())
31
+ source = forms .MultipleChoiceField ( choices = SourceSubdivision .objects .values_list ( 'id' , 'external_name' ), widget = forms .CheckboxSelectMultiple ())
32
32
time_type = forms .ChoiceField (choices = TimeTypeChoices .choices , widget = forms .CheckboxSelectMultiple ())
33
33
geographic_scope = forms .ModelMultipleChoiceField (queryset = GeographicScope .objects .all (), widget = forms .CheckboxSelectMultiple ())
34
34
severenity_pyramid_rungs = forms .ChoiceField (choices = SeverityPyramidRungsChoices .choices , widget = forms .CheckboxSelectMultiple ())
You can’t perform that action at this time.
0 commit comments