def METHOD_NAME(self, assets):
    search = self.request.query_params.get('search')
    if search:
        q = Q(name__icontains=search) | Q(address__icontains=search)
        assets = assets.filter(q)
    return assets