project/scipycon/registration/views.py
branchsouth-migration
changeset 275 679a9cab4bf1
parent 273 5129e1427557
parent 238 0149f28a4f74
child 276 325ec5a41269
equal deleted inserted replaced
274:334746111891 275:679a9cab4bf1
   245             reg.slug = slug
   245             reg.slug = slug
   246             reg.save()
   246             reg.save()
   247 
   247 
   248             wifi = wifi_form.save(registrant, scope_entity)
   248             wifi = wifi_form.save(registrant, scope_entity)
   249             acco = acco_form.save(registrant, scope_entity)
   249             acco = acco_form.save(registrant, scope_entity)
   250 
       
   251             send_confirmation(registrant, scope_entity, password=passwd)
   250             send_confirmation(registrant, scope_entity, password=passwd)
   252 
       
   253             redirect_to = reverse('scipycon_registrations',
   251             redirect_to = reverse('scipycon_registrations',
   254                                   kwargs={'scope': scope})
   252                                   kwargs={'scope': scope})
   255             return set_message_cookie(redirect_to,
   253             return set_message_cookie(redirect_to,
   256                     msg = u'Thank you, your registration has been submitted '\
   254                     msg = u'Thank you, your registration has been submitted '\
   257                            'and an email has been sent with payment details.')
   255                            'and an email has been sent with payment details.')