Example #1
0
 def clean_date(self):
     date = self.cleaned_data.get('date')
     validate_approximatedate(date)
     # Check if the event is in the future
     validate_future_date(date)
     # Check if date is 3 months away
     validate_event_date(date)
     return date
Example #2
0
 def clean_date(self):
     date = self.cleaned_data.get('date')
     validate_approximatedate(date)
     # TODO: add checking if the event is in the future
     return date
Example #3
0
 def clean_date(self):
     date = self.cleaned_data.get('date')
     validate_approximatedate(date)
     # TODO: add checking if the event is in the future
     return date