def change_email(self, email):
        self.email_unconfirmed = email

        salt, hash = generate_sha1(self.user.username)
        self.email_confirmation_key = hash
        self.email_confirmation_key_created = get_datetime_now()
        self.save()

        # Send email for activation
        self.send_confirmation_email()
Changes the email address for a user.
dataset/ETHPy150Open clione/django-kanban/src/core/userena/models.py/UserenaSignup.change_email