From the time of filing as provided in the next preceding section the assessment constitutes a lien upon the lands in the county so assessed and imparts notice to all subsequent purchasers or encumbrancers or any person acquiring any interest in or lien upon the lands.