def apply_card(): u = current_user() if u is None: return abort(403) form = request.form Card.apply_card(u, form) return redirect(url_for(".index"))