Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use single email instead of list
Adam Bogdał6824b26f2f42
diff --git a/saleor/order/models.py b/saleor/order/models.pyindex 8c92b180e5..e772b3a4fa 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -122,7 +122,7 @@ class Order(models.Model, ItemSet):reverse('order:details', kwargs={'token': self.token}))context = {'payment_url': payment_url}- emailit.api.send_mail([email], context, 'order/emails/confirm_email')+ emailit.api.send_mail(email, context, 'order/emails/confirm_email')def get_last_payment_status(self):last_payment = self.payments.last()@@ -346,7 +346,7 @@ class Payment(BasePayment):reverse('order:details', kwargs={'token': self.order.token}))context = {'order_url': order_url}emailit.api.send_mail(- [email], context, 'order/payment/emails/confirm_email')+ email, context, 'order/payment/emails/confirm_email')def get_purchased_items(self):items = [PurchasedItem(diff --git a/saleor/registration/forms.py b/saleor/registration/forms.pyindex 9a87b50df6..b8cab36811 100644--- a/saleor/registration/forms.py+++ b/saleor/registration/forms.py@@ -59,7 +59,7 @@ class RequestEmailConfirmationForm(forms.Form):request = self.create_request_instance()confirmation_url = self.local_host + request.get_confirmation_url()context = {'confirmation_url': confirmation_url}- emailit.api.send_mail([email], context, self.template)+ emailit.api.send_mail(email, context, self.template)def create_request_instance(self):email = self.cleaned_data['email']