From 38280697f967934b4f10b33a4ba408eae39058ae Mon Sep 17 00:00:00 2001 From: Date: Fri, 8 Dec 2017 03:06:02 +0300 Subject: [PATCH] heroku --- blog/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/views.py b/blog/views.py index 4d583e9..7eea2dc 100644 --- a/blog/views.py +++ b/blog/views.py @@ -101,7 +101,7 @@ def post_edit(request, pk): #post.published_date = timezone.now() post.save() form.save_m2m() - return redirect('blog.views.post_detail', pk=post.pk) + return redirect('post_detail', pk=post.pk) else: form = PostForm(instance=post) return render(request, 'blog/post_edit.html', {'form': form, 'latest': latest, 'cloud': tag_cloud})