diff options
-rw-r--r-- | project/scipycon/registration/utils.py | 4 | ||||
-rw-r--r-- | project/scipycon/registration/views.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/project/scipycon/registration/utils.py b/project/scipycon/registration/utils.py index 76288c3..bf4e0cd 100644 --- a/project/scipycon/registration/utils.py +++ b/project/scipycon/registration/utils.py @@ -1,7 +1,7 @@ from django.core.mail import EmailMessage -def send_confirmation(registrant, event): +def send_confirmation(registrant, event ,password=None): message = EmailMessage() message.subject = u'Registration to %s' % (event.get_full_name()) @@ -10,7 +10,7 @@ def send_confirmation(registrant, event): details = {'name': registrant.get_full_name(), 'username': registrant.username, - 'password': registrant.password, + 'password': password, 'event_name': event.get_full_name(), 'event_scope': event.scope, } diff --git a/project/scipycon/registration/views.py b/project/scipycon/registration/views.py index 3bc65de..ef5f9ee 100644 --- a/project/scipycon/registration/views.py +++ b/project/scipycon/registration/views.py @@ -227,7 +227,7 @@ def submit_registration(request, scope, wifi = wifi_form.save(registrant, scope_entity) - send_confirmation(registrant, scope_entity) + send_confirmation(registrant, scope_entity,password=passwd) redirect_to = reverse('scipycon_registrations', kwargs={'scope': scope}) |