Przeglądaj źródła

Fix issue with send_messages in alerts utils

Wasn't opening the connection first (according to Django's docs).  Not
100% this works - we'll see in the sandbox.
master
David Winterbottom 13 lat temu
rodzic
commit
ebf05daf82
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1
    0
      oscar/apps/customer/alerts/utils.py

+ 1
- 0
oscar/apps/customer/alerts/utils.py Wyświetl plik

@@ -97,6 +97,7 @@ def send_product_alerts(product):
97 97
     # Send all emails in one go to prevent multiple SMTP
98 98
     # connections to be opened
99 99
     connection = mail.get_connection()
100
+    connection.open()
100 101
     connection.send_messages(emails)
101 102
     connection.close()
102 103
 

Ładowanie…
Anuluj
Zapisz