Esempio n. 1
0
 def notify_and_redirect(self):
     new_request = UpdatesRegistration(email=self.email)
     as_been_sent = _send_email(self.email_confirmation, EMAILS["CONTACT"]["FROM"])
     new_request.save()
     redirect = urlresolvers.reverse('updates_registration.views.register_success')
     return HttpResponseRedirect(redirect)
Esempio n. 2
0
 def setUp(self):
     self.registered_user_email = "*****@*****.**"
     self.registered_user = UpdatesRegistration(
         email=self.registered_user_email)
     self.registered_user.save()