def get_queryset(self):
<EOL>queryset = super(NodeList, self).get_queryset().select_related('<STR_LIT:status>', '<STR_LIT:user>', '<STR_LIT>')<EOL>search = self.request.query_params.get('<STR_LIT>', None)<EOL>layers = self.request.query_params.get('<STR_LIT>', None)<EOL>if search is not None:<EOL><INDENT>search_query = (<EOL>Q(name__icontains=search) |<EOL>Q(slug__icontains=search) |<EOL>Q(description__icontains=search) |<EOL>Q(address__icontains=search)<EOL>)<EOL>queryset = queryset.filter(search_query)<EOL><DEDENT>if layers is not None:<EOL><INDENT>queryset = queryset.filter(Q(layer__slug__in=layers.split('<STR_LIT:U+002C>')))<EOL><DEDENT>return queryset<EOL>
Optionally restricts the returned nodes
by filtering against a `search` query parameter in the URL.