diff options
author | piernov <piernov@piernov.org> | 2015-02-28 23:25:05 +0100 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2015-02-28 23:25:05 +0100 |
commit | 4d448b614e0e84b3c8ad004744601bf19728ea19 (patch) | |
tree | 64d21972f424d61fe3938abb886c473eb21eb482 | |
parent | a99cc1256794aeffb6f06eb758ad942b937129fa (diff) | |
download | jm2l-4d448b614e0e84b3c8ad004744601bf19728ea19.tar.gz jm2l-4d448b614e0e84b3c8ad004744601bf19728ea19.tar.bz2 jm2l-4d448b614e0e84b3c8ad004744601bf19728ea19.tar.xz jm2l-4d448b614e0e84b3c8ad004744601bf19728ea19.zip |
Staff task name mandatory
-rw-r--r-- | jm2l/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |