1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

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
This commit is contained in:
Karen Tracey
2010-03-16 22:37:45 +00:00
parent f482984af1
commit e434573ef1
4 changed files with 41 additions and 9 deletions

View File

@@ -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)