File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ 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 .MultipleChoiceField (
32
- choices = set ( SourceSubdivision .objects .values_list ('external_name' , 'external_name' )),
31
+ source = forms .ModelMultipleChoiceField (
32
+ queryset = SourceSubdivision .objects .values_list ('external_name' , 'external_name' ). distinct ( ),
33
33
widget = forms .CheckboxSelectMultiple ()
34
34
)
35
35
time_type = forms .ChoiceField (choices = TimeTypeChoices .choices , widget = forms .CheckboxSelectMultiple ())
You can’t perform that action at this time.
0 commit comments