Validate range of geo_lat/geo_lon values

This commit is contained in:
Raphael Michel
2021-01-04 10:34:47 +01:00
parent 6cf1074b8d
commit be413693ce
4 changed files with 34 additions and 4 deletions

View File

@@ -55,6 +55,8 @@ class SubEventForm(I18nModelForm):
'date_admission': SplitDateTimePickerWidget(attrs={'data-date-after': '#id_date_from_0'}),
'presale_start': SplitDateTimePickerWidget(),
'presale_end': SplitDateTimePickerWidget(attrs={'data-date-after': '#id_presale_start_0'}),
'geo_lat': forms.NumberInput(attrs={'min': '-90', 'max': '90'}),
'geo_lon': forms.NumberInput(attrs={'min': '-180', 'max': '180'}),
}