Project

General

Profile

« Previous | Next » 

Revision e332bdb9

Added by Benjamin Dauvergne over 12 years ago

Revert "new appointment form: allow only one doctor as participant"

This reverts commit d36da5fa5b95e51df6d4bfa9049ba98359347082.

View differences:

calebasse/agenda/forms.py
42 42
            self.fields['patient'].queryset = \
43 43
                    PatientRecord.objects.for_service(service)
44 44

  
45
    def clean_participants(self):
46
        if self.cleaned_data['participants'] and len(self.cleaned_data['participants']) > 1:
47
            raise forms.ValidationError(u'Un seul thérapeute est permis.')
48
        return self.cleaned_data['participants']
49

  
50 45
    def clean_duration(self):
51 46
        duration = self.cleaned_data['duration']
52 47
        try:

Also available in: Unified diff