mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-25 02:41:30 -08:00
fix redirects
This commit is contained in:
parent
f3408879c4
commit
26d758319b
@ -13,7 +13,7 @@ def edit_episode(request, pk, title_slug):
|
|||||||
form = EpisodeForm(request.POST, request.FILES, instance=episode)
|
form = EpisodeForm(request.POST, request.FILES, instance=episode)
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
form.save()
|
form.save()
|
||||||
return redirect('audio:home')
|
return redirect('audio:episode', pk=pk, slug=title_slug)
|
||||||
else:
|
else:
|
||||||
form = EpisodeForm(instance=episode)
|
form = EpisodeForm(instance=episode)
|
||||||
return render(
|
return render(
|
||||||
@ -40,7 +40,7 @@ def new_episode(request, feed_pk, feed_title_slug):
|
|||||||
episode.user = request.user
|
episode.user = request.user
|
||||||
episode.feed = feed
|
episode.feed = feed
|
||||||
episode.save()
|
episode.save()
|
||||||
return redirect('audio:new_feed')
|
return redirect('audio:feed', pk=feed_pk, slug=feed_title_slug)
|
||||||
else:
|
else:
|
||||||
form = EpisodeForm()
|
form = EpisodeForm()
|
||||||
return render(
|
return render(
|
||||||
|
Loading…
Reference in New Issue
Block a user