def get(self, request, *args, **kwargs):
        people = self.get_queryset()

        q = self.request.GET.get('q', None)
        if 'q' in self.request.GET:
            people = people.filter(Q(first_name__icontains = q) | Q(last_name__icontains = q))
            
        people = people.values('first_name', 'last_name', 'email', 'twitter_username', 'github_username', 'id')
        for person in list(people):
            person['name'] = '%s %s' % (person['first_name'], person['last_name'])

        return render_json_to_response(list(people))
dataset/ETHPy150Open mozilla/source/source/people/views.py/PersonSearchJson.get/original