From 28756b9632034ec961f5c005360c292be40c58d5 Mon Sep 17 00:00:00 2001 From: Date: Fri, 8 Dec 2017 02:56:03 +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 49b8ebf..4d583e9 100644 --- a/blog/views.py +++ b/blog/views.py @@ -82,7 +82,7 @@ def post_new(request): 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() return render(request, 'blog/post_edit.html', {'form': form, 'latest': latest, 'cloud': tag_cloud})