Compare commits

...

2 Commits

Author SHA1 Message Date
Antoine Bartuccio d56990b91f Merge branch 'fix/better_str_comparison' into 'master'
small fix to follow python recommendations

See merge request ae/Sith!190
2019-02-04 00:10:02 +01:00
Pierre Brunet 18f464a49f small fix to follow python recommendations 2019-02-02 00:32:34 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -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 ""
and self.cleaned_data.get("target_label") == ""
):
self.add_error(
"target_type", ValidationError(_("The target must be set."))