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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user