Commit 8388f4ee authored by Krophil's avatar Krophil

Avoid error 500 when target is forgotten

parent acfbdd1a
Pipeline #1665 passed with stage
in 11 minutes and 5 seconds
......@@ -415,7 +415,7 @@ class OperationForm(forms.ModelForm):
and self.cleaned_data.get("club") is None
and self.cleaned_data.get("club_account") is None
and self.cleaned_data.get("company") is None
and self.cleaned_data.get("target_label") is None
and self.cleaned_data.get("target_label") is ""
):
self.add_error(
"target_type", ValidationError(_("The target must be set."))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment