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
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