1. Dan Watson
  2. leaves-cms

Commits

Dan Watson  committed 0f24667

Keep reply_to on errors

  • Participants
  • Parent commits 7ac9082
  • Branches default

Comments (0)

Files changed (1)

File leaves/views.py

View file
 			comment_form = CommentForm(leaf=leaf, author_user=request.user, status=status)
 	template_name = '%s/%s.html' % (leaf._meta.app_label, leaf._meta.module_name)
 	try:
-		reply_to = leaf.comments.get(pk=request.GET['reply_to'])
+		reply_to = leaf.comments.get(pk=request.REQUEST['reply_to'])
 	except:
 		reply_to = None
 	return TemplateResponse(request, (leaf.page_template, template_name, 'leaf.html'), {