diff --git a/hknweb/events/forms/event/create.py b/hknweb/events/forms/event/create.py index 7688ee35..5acba7d8 100644 --- a/hknweb/events/forms/event/create.py +++ b/hknweb/events/forms/event/create.py @@ -48,5 +48,11 @@ def clean(self): cleaned_data = super().clean() start_time = cleaned_data.get("start_time") end_time = cleaned_data.get("end_time") - if end_time < start_time: + if (start_time is None) or (end_time is None): + error_source = "start_time" if (start_time is None) else "end_time" + self.add_error( + error_source, + "Please use the time picker to select the time, the formatter is picky", + ) + elif end_time < start_time: self.add_error("end_time", "End Time is not after Start Time")