diff --git a/accounting/views.py b/accounting/views.py index 5ebd0e2a8f418169e55926c49266ddc7d412316f..ce6bd92818cab0968feecec87bb18661222d6bc9 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 None + and self.cleaned_data.get("target_label") is "" ): self.add_error( "target_type", ValidationError(_("The target must be set."))