Ejemplo n.º 1
0
def remove_signup():
    form = RemoveSignupForm(request.form)
    if form.validate_on_submit() and Season.remove_signup(
            form.season_id.data, form.user_id.data):
        flash("Sign-up removed")
    else:
        flash("Failed to remove sign-up")
    return redirect(request.referrer)