diff options
author | Amit Sethi | 2010-12-24 16:02:21 +0530 |
---|---|---|
committer | Amit Sethi | 2010-12-24 16:02:21 +0530 |
commit | 8ef01f45ff2ed4a13bf00d97103ddf94872cdadb (patch) | |
tree | ccceced26891a3703ebd844d691101235f3fbc20 /scripts/mails.py | |
parent | 90a83c1bd2b6c6be1300ab850916a587c2e6c3a2 (diff) | |
parent | 85947db58ea7cbe9101ac13cff1e438f3968c150 (diff) | |
download | scipycon-8ef01f45ff2ed4a13bf00d97103ddf94872cdadb.tar.gz scipycon-8ef01f45ff2ed4a13bf00d97103ddf94872cdadb.tar.bz2 scipycon-8ef01f45ff2ed4a13bf00d97103ddf94872cdadb.zip |
Merging heads
Diffstat (limited to 'scripts/mails.py')
-rw-r--r-- | scripts/mails.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/mails.py b/scripts/mails.py index 5e263a7..a15baa8 100644 --- a/scripts/mails.py +++ b/scripts/mails.py @@ -10,11 +10,19 @@ __authors__ = [ from django.template import loader from django.contrib.auth.models import User +from django.utils.translation import ugettext from project.scipycon.registration.models import Registration from project.scipycon.talk.models import Talk +DEF_REMAINDER_REGISTRATION_PAGE_SUBJECT = ugettext( + 'SciPy.in 2010: Registration updates required for confirmation') + +DEF_REMAINDER_ACCO_CONTACT_SUBJECT = ugettext( + 'SciPy.in 2010: Contact details, registration page and other updates') + + def speaker_accepted(): """Sends a mail to each speaker whose talk has been accepted informing them about the same. @@ -60,7 +68,7 @@ def delegate_remainder(template=None): regs = Registration.objects.all() for reg in regs: - subject = 'SciPy.in 2010: Registration updates required for confirmation' + subject = DEF_REMAINDER_ACCO_CONTACT_SUBJECT message = loader.render_to_string( template, dictionary={'name': reg.registrant.get_full_name()}) |