mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-12 13:46:05 +00:00
Avoid error 500 when target is forgotten
This commit is contained in:
1 parent
acfbdd1ad5
commit
8388f4ee65
1 file changed
+1
-1
+1
-1
@@ -415,7 +415,7 @@ class OperationForm(forms.ModelForm):
|
|||||||
and self.cleaned_data.get("club") is None
|
and self.cleaned_data.get("club") is None
|
||||||
and self.cleaned_data.get("club_account") is None
|
and self.cleaned_data.get("club_account") is None
|
||||||
and self.cleaned_data.get("company") 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(
|
self.add_error(
|
||||||
"target_type", ValidationError(_("The target must be set."))
|
"target_type", ValidationError(_("The target must be set."))
|
||||||
|
|||||||
Reference in new issue
Block a user