Revision 733f013d snf-astakos-app/astakos/im/forms.py

b/snf-astakos-app/astakos/im/forms.py
885 885
        q = self.cleaned_data.get('q') or ''
886 886
        users = q.split(',')
887 887
        users = list(u.strip() for u in users if u)
888
        db_entries = AstakosUser.objects.verified().filter(email__in=users)
888
        db_entries = AstakosUser.objects.accepted().filter(email__in=users)
889 889
        unknown = list(set(users) - set(u.email for u in db_entries))
890 890
        if unknown:
891 891
            raise forms.ValidationError(

Also available in: Unified diff