All bonds issued under the terms of this chapter that are made payable from the proceeds of assessments shall be secured by a lien on all lands in the district unless the district shall be able to sell bonds payable out of water revenue only. The board shall see to it that a tax is levied annually and collected under the provisions of this chapter, so long as it may be necessary to pay any bond issued or obligation contracted under its authority. The making of the assessment or levy and collection may be enforced by mandamus.