      enable_comments = models.BooleanField()
  
      def __str__(self):
          return self.title
 
</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): </s> remove from regressiontests.comment_tests.models import Article
 </s> add from regressiontests.comment_tests.models import Article, Book
class Book(models.Model):
    dewey_decimal = models.DecimalField(primary_key = True, decimal_places=2, max_digits=5)
    
      enable_comments = models.BooleanField()
  
      def __str__(self):
          return self.title
class Book(models.Model):
    dewey_decimal = models.DecimalField(primary_key = True, decimal_places=2, max_digits=5)
    
keep keep keep add
 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 
tests/regressiontests/comment_tests/models.py