'Activate the ``RegistrationProfile`` given as argument.
User is able to login, as ``is_active`` is set to ``True``'

def _activate(self, profile, site, get_profile):

    user = profile.user
    user.is_active = True
    profile.activated = True
    with transaction.atomic():
        user.save()
        profile.save()
    if get_profile:
        return profile
    else:
        return user
