Project

General

Profile

« Previous | Next » 

Revision d0220ea6

Added by Jérôme Schneider about 11 years ago

agenda: if duration of a new event is not an int raise an error

Closes #4004

View differences:

calebasse/agenda/forms.py
168 168
        try:
169 169
            return int(duration)
170 170
        except:
171
            return None
171
            raise forms.ValidationError('Veuillez saisir un entier')
172 172

  
173 173
    def save(self, commit=True):
174 174
        event = super(NewEventForm, self).save(commit=False)

Also available in: Unified diff