'Send email(s) with an account recovery link.'

def save(self, request):

    email = self.cleaned_data['email']
    active_users = User.objects.filter(is_active=True)
    primary_users = active_users.filter(email__iexact=email)
    personas = active_users.filter(socialaccount__uid__iexact=email, socialaccount__provider='persona')
    confirmed = active_users.filter(emailaddress__email__iexact=email)
    user_pks = set()
    user_pks.update(primary_users.values_list('pk', flat=True))
    user_pks.update(personas.values_list('pk', flat=True))
    user_pks.update(confirmed.values_list('pk', flat=True))
    for user_pk in sorted(user_pks):
        send_recovery_email(user_pk, email, request.LANGUAGE_CODE)
