fix date of service

This commit is contained in:
Joachim Lusiardi 2021-06-22 21:49:32 +02:00
parent 578b2c15d8
commit 673b671ab8
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from .checks import *
class CreateServiceForm(FlaskForm):
date = DateField('Date of Pitstop')
date = DateField('Date of Service')
odometer = IntegerField('Odometer (km)', validators=[odometer_date_check])
costs = DecimalField('Costs (€, overall)', places=2, validators=[costs_check])
description = TextAreaField('Description', validators=[Length(1, 4096)])
@ -72,4 +72,4 @@ class EditServiceForm(FlaskForm):
'litres': 'Litres must be higher than 0.01 L.',
'costs': 'Costs must be higher than 0.01 €.'
}
return messages
return messages