'Base queryset used only in admin.
Return all the users who have completed their profile registration.'

def get_queryset(self):

    if (not self.request.user.is_staff):
        return User.objects.none()
    qs = User.objects.all()
    self.q_base_filter = ((Q(userprofile__full_name__icontains=self.q) | Q(email__icontains=self.q)) | Q(username__icontains=self.q))
    if self.q:
        qs = qs.filter(self.q_base_filter)
    return qs
