Commit a29471bd989f4c5c2732748c82eba507af08b0ef
Exists in
master
and in
2 other branches
Merge branch 'refactoring' of https://github.com/amadeusproject/amadeuslms into refactoring
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
webconference/forms.py
... | ... | @@ -67,7 +67,7 @@ class WebconferenceForm(forms.ModelForm): |
67 | 67 | |
68 | 68 | def clean_start(self): |
69 | 69 | start = self.cleaned_data['start'] |
70 | - if start.timetuple() < datetime.datetime.now().timetuple(): | |
70 | + if start.date() < datetime.datetime.now().date(): | |
71 | 71 | self._errors['start'] = [_('This date must be today or after')] |
72 | 72 | return ValueError |
73 | 73 | ... | ... |