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