From 5e379072d8410d46c63a77d90f19afa6a58e68d1 Mon Sep 17 00:00:00 2001 From: Joseph Chatelain Date: Fri, 24 Mar 2023 13:25:34 -0700 Subject: [PATCH] force a min value for alerts. --- tom_antares/antares.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tom_antares/antares.py b/tom_antares/antares.py index 5a6f6ee..f219205 100644 --- a/tom_antares/antares.py +++ b/tom_antares/antares.py @@ -131,10 +131,9 @@ class ANTARESBrokerForm(GenericQueryForm): widget=forms.TextInput(attrs={'placeholder': '{"query":{}}'}), ) max_alerts = forms.FloatField( - required=False, label='Maximum number of alerts to fetch', widget=forms.TextInput(attrs={'placeholder': 'Max Alerts'}), - min_value=0.0, + min_value=1, initial=20 )