Bugfix in validation message.

pull/7/head
Ferry Boender 10 years ago
parent 3442f34d1b
commit 536caec8b7
  1. 2
      src/scriptform.py

@ -503,7 +503,7 @@ class FormDefinition:
raise ValidationError("Minimum value is {0}".format(min))
if max is not None:
if value > datetime.datetime.strptime(max, '%Y-%m-%d').date():
raise ValidationError("maximum value is {0}".format(max))
raise ValidationError("Maximum value is {0}".format(max))
return value

Loading…
Cancel
Save