This commit is contained in:
2017-12-08 02:56:03 +03:00
parent a931391e34
commit 28756b9632

View File

@ -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})