mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
small fix to follow python recommendations
This commit is contained in:
parent
0f7f80e9d3
commit
18f464a49f
@ -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 ""
|
and self.cleaned_data.get("target_label") == ""
|
||||||
):
|
):
|
||||||
self.add_error(
|
self.add_error(
|
||||||
"target_type", ValidationError(_("The target must be set."))
|
"target_type", ValidationError(_("The target must be set."))
|
||||||
|
Loading…
Reference in New Issue
Block a user