def get_query(self,q,request):
        return User.objects.filter(Q(username__istartswith=q) | 
            Q(first_name__istartswith=q) | Q(last_name__istartswith=q))
Return a query set.
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/lookups.py/UsersLookup.get_query