more useful redirect after submitting time

This commit is contained in:
boyska 2019-08-10 15:16:20 +02:00
parent c78e90d240
commit 881d5aeefe

View file

@ -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
)