scripts/scipy_migrate.py
changeset 21 127b772a3af4
parent 1 fda1c66b25f9
child 22 2294c71a61ea
equal deleted inserted replaced
20:486cfc8dd611 21:127b772a3af4
    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(template, dictionary={'activation_key': reg.activation_key})
    29         message = loader.render_to_string(
       
    30             template, dictionary={'activation_key': reg.activation_key})
    30 
    31 
    31         reg.user.email_user(subject=subject, message=message)
    32         reg.user.email_user(subject=subject, message=message)
    32