Skip to content

Commit

Permalink
fix meeting time validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Jan 5, 2025
1 parent ed39b77 commit 7488cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ephios/core/forms/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def clean(self):
cleaned_data = super().clean()
if {"meeting_time", "start_time"} <= set(cleaned_data.keys()):
if not cleaned_data["meeting_time"] <= cleaned_data["start_time"]:
raise ValidationError(_("Meeting time must not be after start time!"))
self.add_error("meeting_time", _("Meeting time must not be after start time!"))
return cleaned_data


Expand Down

0 comments on commit 7488cec

Please sign in to comment.