No need for this.
This commit is contained in:
parent
4cbb25a537
commit
ce4a744da6
|
@ -93,6 +93,3 @@ CHANNEL_LAYERS = {
|
|||
ACCOUNTINGSYSTEM_EMAIL = "{{ django_accountingsystem_email }}"
|
||||
ECONOMYTEAM_EMAIL = "{{ django_economyteam_email }}"
|
||||
ECONOMYTEAM_NAME = "Economy"
|
||||
|
||||
ORDER_TTL = 24
|
||||
ORDER_TTL_UNIT = 'hours'
|
||||
|
|
|
@ -78,6 +78,3 @@ CHANNEL_LAYERS = {
|
|||
}
|
||||
|
||||
REIMBURSEMENT_MAIL = "reimbursement@example.com"
|
||||
|
||||
ORDER_TTL = 30
|
||||
ORDER_TTL_UNIT = 'minutes'
|
||||
|
|
|
@ -49,25 +49,6 @@ def add_invoice_email(invoice):
|
|||
)
|
||||
|
||||
|
||||
def add_order_cancelled_email(order):
|
||||
formatdict = {
|
||||
'ordernumber': order.pk,
|
||||
'order_ttl': settings.ORDER_TTL,
|
||||
'order_ttl_unit': settings.ORDER_TTL_UNIT
|
||||
}
|
||||
|
||||
subject = 'Your non-paid BornHack order has been cancelled.'
|
||||
|
||||
# add email to outgoing email queue
|
||||
return add_outgoing_email(
|
||||
text_template='emails/order_cancelled_email.txt',
|
||||
html_template='emails/order_cancelled_email.html',
|
||||
to_recipients=order.user.email,
|
||||
formatdict=formatdict,
|
||||
subject=subject,
|
||||
)
|
||||
|
||||
|
||||
def add_test_email(recipient):
|
||||
return add_outgoing_email(
|
||||
text_template='emails/testmail.txt',
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
Hello!<br>
|
||||
<br>
|
||||
Your order number {{ ordernumber }} has been open for more than {{ order_ttl }} {{ order_ttl_unit }} and has been cancelled.<br>
|
||||
<br>
|
||||
This means you will have to open a new order.<br>
|
||||
<br>
|
||||
<br>
|
||||
Best regards,<br>
|
||||
<br>
|
||||
The BornHack Team<br>
|
||||
<br>
|
|
@ -1,9 +0,0 @@
|
|||
Hello!
|
||||
|
||||
Your order number {{ ordernumber }} has been open for more than {{ order_ttl }} {{ order_ttl_unit }} and has been cancelled.
|
||||
|
||||
This means you will have to open a new order.
|
||||
|
||||
Best regards,
|
||||
|
||||
The BornHack Team
|
Loading…
Reference in a new issue