def METHOD_NAME(form):
    """Find and return vlans based on searchform"""
    query = form.cleaned_data['query']
    _logger.debug('Processing searchform for vlans with query: %s', query)
    if query is None:
        return Vlan.objects.all()
    else:
        return Vlan.objects.filter(
            Q(vlan__icontains=query)
            | Q(net_type__description__icontains=query)
            | Q(description__icontains=query)
            | Q(net_ident__icontains=query)
        ).order_by("vlan")