From 26d758319bd15b1cccb6c84c2fd675f324de82da Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Wed, 24 Feb 2021 22:25:38 -0800 Subject: [PATCH] fix redirects --- audio/episode_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/episode_views.py b/audio/episode_views.py index af84423..38c549d 100644 --- a/audio/episode_views.py +++ b/audio/episode_views.py @@ -13,7 +13,7 @@ def edit_episode(request, pk, title_slug): form = EpisodeForm(request.POST, request.FILES, instance=episode) if form.is_valid(): form.save() - return redirect('audio:home') + return redirect('audio:episode', pk=pk, slug=title_slug) else: form = EpisodeForm(instance=episode) return render( @@ -40,7 +40,7 @@ def new_episode(request, feed_pk, feed_title_slug): episode.user = request.user episode.feed = feed episode.save() - return redirect('audio:new_feed') + return redirect('audio:feed', pk=feed_pk, slug=feed_title_slug) else: form = EpisodeForm() return render(