diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2010-03-16 22:37:45 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2010-03-16 22:37:45 +0000 |
| commit | e434573ef12934d8e8f77e2e794d2968dd734ded (patch) | |
| tree | d8f9f18c21ef016211fd5fb389d957b3c01e02ee /tests/regressiontests/comment_tests/models.py | |
| parent | f482984af17f227fad01ee06a1b07e9381dee3aa (diff) | |
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
Diffstat (limited to 'tests/regressiontests/comment_tests/models.py')
| -rw-r--r-- | tests/regressiontests/comment_tests/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/comment_tests/models.py b/tests/regressiontests/comment_tests/models.py index 62f416882c..8877ea1155 100644 --- a/tests/regressiontests/comment_tests/models.py +++ b/tests/regressiontests/comment_tests/models.py @@ -28,3 +28,7 @@ class Entry(models.Model): def __str__(self): return self.title + +class Book(models.Model): + dewey_decimal = models.DecimalField(primary_key = True, decimal_places=2, max_digits=5) +
\ No newline at end of file |
