Revision d0220ea6
Added by Jérôme Schneider about 12 years ago
| calebasse/agenda/forms.py | ||
|---|---|---|
|
try:
|
||
|
return int(duration)
|
||
|
except:
|
||
|
return None
|
||
|
raise forms.ValidationError('Veuillez saisir un entier')
|
||
|
|
||
|
def save(self, commit=True):
|
||
|
event = super(NewEventForm, self).save(commit=False)
|
||
Also available in: Unified diff
agenda: if duration of a new event is not an int raise an error
Closes #4004