From 963a78aa721b1a737ce8b2443bfce3849580a6b3 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Tue, 19 Aug 2014 11:41:56 +0200 Subject: [PATCH] agenda: time and duration form fields remain mandatory in any cases --- calebasse/agenda/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calebasse/agenda/forms.py b/calebasse/agenda/forms.py index ba46178..ac5c744 100644 --- a/calebasse/agenda/forms.py +++ b/calebasse/agenda/forms.py @@ -51,8 +51,8 @@ class NewAppointmentForm(BaseForm): super(NewAppointmentForm, self).__init__(instance=instance, **kwargs) self.fields['date'].css = 'datepicker' self.fields['participants'].required = True - self.fields['time'].required = False - self.fields['duration'].required = False + self.fields['time'].required = True + self.fields['duration'].required = True if service: self.service = service self.special_types = [str(act.id) for act in ActType.objects.filter(Q(name__iexact='courriel') -- 2.1.0