Ticket #8554: newcomments_fix.diff
File newcomments_fix.diff, 596 bytes (added by , 16 years ago) |
---|
-
django/contrib/comments/models.py
diff --git a/django/contrib/comments/models.py b/django/contrib/comments/models.py index 779d67b..6abb52c 100644
a b class BaseCommentAbstractModel(models.Model): 19 19 20 20 # Content-object field 21 21 content_type = models.ForeignKey(ContentType) 22 object_pk = models. TextField(_('object ID'))22 object_pk = models.PositiveIntegerField(_('object ID')) 23 23 content_object = generic.GenericForeignKey(ct_field="content_type", fk_field="object_pk") 24 24 25 25 # Metadata about the comment