Skip to content

Commit

Permalink
precommit why are you not smart :(
Browse files Browse the repository at this point in the history
  • Loading branch information
pinwheeeel committed Nov 26, 2024
1 parent 00223db commit 12b4ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class LateStartEventForm(forms.Form):
def clean(self):
cleaned_data = super().clean()
if (
cleaned_data.get("start_date") != None
and models.Term.get_current(cleaned_data["start_date"]) == None
cleaned_data.get("start_date") is not None
and models.Term.get_current(cleaned_data["start_date"]) is None
):
raise forms.ValidationError({"start_date": "No Term Found For Date"})

0 comments on commit 12b4ce4

Please sign in to comment.