Some mandatory Fixes for 2018 year

This commit is contained in:
2018-06-26 23:40:41 +02:00
parent a928f56966
commit d439a5df2a
32 changed files with 366 additions and 267 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ class PlaceCreateForm(MyBaseForm):
name = StringField('Nom Complet', [validators.Length(min=1, max=80)],
filters=[strip_filter])
gps_coord = StringField(u'Coordonnées GPS', [validators.Length(max=30),
validators.Regexp( "^[0-9]*\.?[0-9],[0-9]*\.?[0-9]+",
validators.Regexp( "^[0-9]+\.?[0-9]+,[0-9]+\.?[0-9]+$",
message=u"Le GPS devrait être sous la forme 43.6158372,7.0723401")],
filters=[strip_filter])
adresse = TextAreaField('Adresse', [validators.Length(max=100)],