This patch against django svn 20060611 adds the freshly posted comment to the 'posted' template thus allowing to show the comment or link via an anchor to the comment. E.g. View Comment --Maximillian Dornseif Index: django/contrib/comments/views/comments.py =================================================================== --- django/contrib/comments/views/comments.py (revision 3117) +++ django/contrib/comments/views/comments.py (working copy) @@ -252,7 +252,7 @@ else: manipulator.do_html2python(new_data) comment = manipulator.save(new_data) - return HttpResponseRedirect("../posted/?c=%s:%s" % (content_type_id, object_id)) + return HttpResponseRedirect("../posted/?c=%s:%s&ic=%s" % (content_type_id, object_id, comment.id)) else: raise Http404, _("The comment form didn't provide either 'preview' or 'post'") @@ -316,7 +316,7 @@ else: manipulator.do_html2python(new_data) comment = manipulator.save(new_data) - return HttpResponseRedirect("../posted/?c=%s:%s" % (content_type_id, object_id)) + return HttpResponseRedirect("../posted/?c=%s:%s&if=%s" % (content_type_id, object_id, comment.id)) else: raise Http404, _("The comment form didn't provide either 'preview' or 'post'") @@ -330,6 +330,7 @@ The object the comment was posted on """ obj = None + comment = None if request.GET.has_key('c'): content_type_id, object_id = request.GET['c'].split(':') try: @@ -337,4 +338,14 @@ obj = content_type.get_object_for_this_type(pk=object_id) except ObjectDoesNotExist: pass - return render_to_response('comments/posted.html', {'object': obj}, context_instance=RequestContext(request)) + try: + comment_id = request.GET['if'] + comment = FreeComment.objects.get(pk=comment_id) + except ObjectDoesNotExist: + pass + try: + comment_id = request.GET['ic'] + comment = Comment.objects.get(pk=comment_id) + except ObjectDoesNotExist: + pass + return render_to_response('comments/posted.html', {'object': obj, 'comment': comment}, context_instance=RequestContext(request))