Ticket #8554: newcomments_fix.diff

File newcomments_fix.diff, 596 bytes (added by Florian Apolloner, 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):  
    1919   
    2020    # Content-object field
    2121    content_type   = models.ForeignKey(ContentType)
    22     object_pk      = models.TextField(_('object ID'))
     22    object_pk      = models.PositiveIntegerField(_('object ID'))
    2323    content_object = generic.GenericForeignKey(ct_field="content_type", fk_field="object_pk")
    2424
    2525    # Metadata about the comment
Back to Top