aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'jm2l/forms.py')
-rw-r--r--jm2l/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jm2l/forms.py b/jm2l/forms.py
index acb60f1..4109527 100644
--- a/jm2l/forms.py
+++ b/jm2l/forms.py
@@ -57,10 +57,10 @@ class EditStaffArea(StaffArea):
uid = HiddenField()
class StaffTasks(MyBaseForm):
- name = TextField(u'Nom de la tâche')
+ name = TextField(u'Nom de la tâche', [validators.Required()])
area_uid = SelectField(u'Pôle concerné', coerce=int )
closed_by = SelectField(u'Assigné à', coerce=int )
- due_date = DateField(u'Date prévue', format='%d/%m/%Y')
+ due_date = DateField(u'Date prévue', format='%Y-%m-%d')
description = TextAreaField('Description', [validators.optional(), validators.Length(max=1000000)],
filters=[strip_filter])