heroku
This commit is contained in:
parent
e8be2da9e2
commit
38280697f9
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user