mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 02:54:20 +00:00
Merge branch 'patch/targets' into 'master'
Avoid error 500 when target is forgotten See merge request ae/Sith!187
This commit is contained in:
commit
80248ec8d3
@ -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."))
|
||||
|
Loading…
Reference in New Issue
Block a user