Bug fixes and improved handling of event editor.

This commit is contained in:
2019-10-18 22:00:52 +02:00
parent 56477948fc
commit 79d1bbbc46
12 changed files with 183 additions and 44 deletions

View File

@@ -86,4 +86,4 @@ def episode_edit(season_id: int, episode_id: int):
if errors:
model.errors = {"Error saving episode": [errors]}
return render_template("generic_form.html", model=model, form=form)
return redirect(url_for("episode_detail", season_id=season_id, episode_id=episode_id))
return redirect(url_for("episode_detail", season_id=season.id, episode_id=episode.id))