We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8212c59 commit 119a2d3Copy full SHA for 119a2d3
basxconnect/invoicing/views.py
@@ -82,7 +82,11 @@ def send_message(
82
email = EmailMessage(
83
subject=send_form.cleaned_data["subject"],
84
body=send_form.cleaned_data["body"],
85
- to=[recp["recipient"] for recp in recipient_formset.cleaned_data],
+ to=[
86
+ recp["recipient"]
87
+ for recp in recipient_formset.cleaned_data
88
+ if "recipient" in recp
89
+ ],
90
)
91
filename, data = send_form.cleaned_data["template"].generate_document_pdf(
92
invoice
0 commit comments