If judgment is rendered against the defendant for the restitution of the real property described in the complaint or any part thereof, no appeal shall be taken by the defendant from such judgment until, in addition to any undertaking otherwise required by law upon appeal, he gives an undertaking to the adverse party, with two sureties, who shall justify in like manner as bail upon arrest, for the payment to the plaintiff of twice the rental value of the real property of which restitution is adjudged from the rendition of such judgment until final judgment in the action, if such judgment shall be affirmed upon appeal.