From 881d5aeefea5f4fa4aebaf9ac1969fcdb0659241 Mon Sep 17 00:00:00 2001 From: boyska Date: Sat, 10 Aug 2019 15:16:20 +0200 Subject: [PATCH] more useful redirect after submitting time --- larigira/dbadmin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larigira/dbadmin/__init__.py b/larigira/dbadmin/__init__.py index 940cedf..3d846d6 100644 --- a/larigira/dbadmin/__init__.py +++ b/larigira/dbadmin/__init__.py @@ -121,7 +121,7 @@ def edit_time(alarmid): data = receiver(form) model.update_alarm(alarmid, data) model.reload() - return redirect(url_for("db.events_list", _anchor="event-%d" % alarmid)) + return redirect(url_for("db.events_calendar", highlight="%d" % alarmid)) return render_template( "add_time_kind.html", form=form, kind=kind, mode="edit", alarmid=alarmid )