From 4d448b614e0e84b3c8ad004744601bf19728ea19 Mon Sep 17 00:00:00 2001 From: piernov Date: Sat, 28 Feb 2015 23:25:05 +0100 Subject: [PATCH] Staff task name mandatory --- jm2l/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jm2l/forms.py b/jm2l/forms.py index acb60f1..304a060 100644 --- a/jm2l/forms.py +++ b/jm2l/forms.py @@ -57,7 +57,7 @@ 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')