  from django import http
  from django.conf import settings
  from utils import next_redirect, confirmation_view
  from django.core.exceptions import ObjectDoesNotExist
  from django.db import models
  from django.shortcuts import render_to_response
  from django.template import RequestContext
  from django.template.loader import render_to_string
  from django.utils.html import escape
 
</s> remove from regressiontests.comment_tests.models import Article
 </s> add from regressiontests.comment_tests.models import Article, Book </s> remove         Tests that attempting to retrieve the location specified in the 
        post redirect, after adding some invalid data to the expected 
 </s> add         Tests that attempting to retrieve the location specified in the
        post redirect, after adding some invalid data to the expected </s> remove     def testCommentDoneReSubmitWithInvalidParams(self):
 </s> add     def testCommentPostRedirectWithInvalidIntegerPK(self):
from django.core.exceptions import ObjectDoesNotExist, ValidationError
  from django import http
  from django.conf import settings
  from utils import next_redirect, confirmation_view
from django.core.exceptions import ObjectDoesNotExist, ValidationError
  from django.db import models
  from django.shortcuts import render_to_response
  from django.template import RequestContext
  from django.template.loader import render_to_string
  from django.utils.html import escape
keep keep keep replace keep keep keep keep keep
 Changed the comments post view code to avoid raising an exception if handed invalid data for the object pk. Thanks to Leo for the test.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@12800 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/comments/views/comments.py