fix date of service
This commit is contained in:
parent
578b2c15d8
commit
673b671ab8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue