scripts/scipy_migrate.py
changeset 22 2294c71a61ea
parent 21 127b772a3af4
child 23 3cb3f853a193
equal deleted inserted replaced
21:127b772a3af4 22:2294c71a61ea
    23 
    23 
    24     template = 'notifications/activate_mail.html'
    24     template = 'notifications/activate_mail.html'
    25 
    25 
    26     for reg in regs:
    26     for reg in regs:
    27 
    27 
    28         subject = "Update and activate your SciPy.in registration."
    28         subject = 'Update and activate your SciPy.in registration.'
    29         message = loader.render_to_string(
    29         message = loader.render_to_string(
    30             template, dictionary={'activation_key': reg.activation_key})
    30             template, dictionary={'activation_key': reg.activation_key})
    31 
    31 
    32         reg.user.email_user(subject=subject, message=message)
    32         reg.user.email_user(subject=subject, message=message,
       
    33                             from_email='admin@scipy.in')