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