Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix wrong name mangling for module privates

Jakub Draganekeea04089d0fa
diff --git a/saleor/order/emails.py b/saleor/order/emails.py
index 76b877aa24..293459621f 100644
--- a/saleor/order/emails.py
+++ b/saleor/order/emails.py
@@ -8,7 +8,7 @@ CONFIRM_ORDER_TEMPLATE = 'order/confirm_order'
CONFIRM_PAYMENT_TEMPLATE = 'order/payment/confirm_payment'
-def __send_confirmation(address, url, template):
+def _send_confirmation(address, url, template):
send_templated_mail(from_email=settings.ORDER_FROM_EMAIL,
recipient_list=[address],
context={'site_name': get_site_name(),
@@ -18,9 +18,9 @@ def __send_confirmation(address, url, template):
@shared_task
def send_order_confirmation(address, url):
- __send_confirmation(address, url, CONFIRM_ORDER_TEMPLATE)
+ _send_confirmation(address, url, CONFIRM_ORDER_TEMPLATE)
@shared_task
def send_payment_confirmation(address, url):
- __send_confirmation(address, url, CONFIRM_PAYMENT_TEMPLATE)
+ _send_confirmation(address, url, CONFIRM_PAYMENT_TEMPLATE)