Révision 7a2d7c8a
Ajouté par Serghei Mihai (congés, retour 15/05) il y a presque 10 ans
calebasse/agenda/forms.py | ||
---|---|---|
65 | 65 |
try: |
66 | 66 |
return int(duration) |
67 | 67 |
except ValueError: |
68 |
return 0
|
|
68 |
raise forms.ValidationError('Veuillez saisir un entier')
|
|
69 | 69 |
|
70 | 70 |
def clean_patient(self): |
71 | 71 |
patients = self.cleaned_data['patient'] |
Formats disponibles : Unified diff
agenda: check if duration is an integer in new appointment form
Closes #5086