No need for this.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-03-27 23:37:34 +01:00
parent 4cbb25a537
commit ce4a744da6
5 changed files with 0 additions and 45 deletions

View file

@ -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'

View file

@ -78,6 +78,3 @@ CHANNEL_LAYERS = {
}
REIMBURSEMENT_MAIL = "reimbursement@example.com"
ORDER_TTL = 30
ORDER_TTL_UNIT = 'minutes'

View file

@ -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',

View file

@ -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>

View file

@ -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