Ticket #8554: fix_comments.diff

File fix_comments.diff, 539 bytes (added by cmutel@…, 16 years ago)

Explicitly cast id to string

  • django/contrib/comments/templatetags/comments.py

     
    7777
    7878        qs = self.comment_model.objects.filter(
    7979            content_type = ctype,
    80             object_pk    = object_pk,
     80            object_pk    = str(object_pk),
    8181            site__pk     = settings.SITE_ID,
    8282            is_public    = True,
    8383        )
Back to Top