def search(self, queryset, value):
    qs_filter = ((((Q(name__icontains=value) | Q(facility__icontains=value)) | Q(physical_address__icontains=value)) | Q(shipping_address__icontains=value)) | Q(comments__icontains=value))
    try:
        qs_filter |= Q(asn=int(value.strip()))
    except ValueError:
        pass
    return queryset.filter(qs_filter)
def search(self, queryset, value):
    qs_filter = ((((Q(name__icontains=value) | Q(facility__icontains=value)) | Q(physical_address__icontains=value)) | Q(shipping_address__icontains=value)) | Q(comments__icontains=value))
    try:
        qs_filter |= Q(asn=int(value.strip()))
    except ValueError:
        pass
    return queryset.filter(qs_filter)