From 18f464a49f65e8eac35dced17cb9d63a172f51c2 Mon Sep 17 00:00:00 2001 From: Krophil Date: Sat, 2 Feb 2019 00:32:34 +0100 Subject: [PATCH] small fix to follow python recommendations --- accounting/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounting/views.py b/accounting/views.py index ce6bd928..35c2c4ea 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -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."))