Skip to content

Commit

Permalink
fixup! Further tidy ups
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Nov 18, 2024
1 parent da53e25 commit 0b105ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/release_calendar/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def clean(self) -> dict:
"""Validate the submitted release calendar data."""
cleaned_data: dict = super().clean()

status = cleaned_data.get("status", "")
status = cleaned_data.get("status")

if status == ReleaseStatus.CANCELLED and not cleaned_data.get("notice"):
raise ValidationError({"notice": _("The notice field is required when the release is cancelled")})
Expand Down

0 comments on commit 0b105ca

Please sign in to comment.