Projet

Général

Profil

0001-agenda-time-and-duration-form-fields-remain-mandator.patch

Serghei Mihai (congés, retour 15/05), 19 août 2014 11:45

Télécharger (1,07 ko)

Voir les différences:

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(-)
calebasse/agenda/forms.py
51 51
        super(NewAppointmentForm, self).__init__(instance=instance, **kwargs)
52 52
        self.fields['date'].css = 'datepicker'
53 53
        self.fields['participants'].required = True
54
        self.fields['time'].required = False
55
        self.fields['duration'].required = False
54
        self.fields['time'].required = True
55
        self.fields['duration'].required = True
56 56
        if service:
57 57
            self.service = service
58 58
            self.special_types = [str(act.id) for act in ActType.objects.filter(Q(name__iexact='courriel')
59
-