This commit is contained in:
2017-12-08 03:06:02 +03:00
parent e8be2da9e2
commit 38280697f9

View File

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