Ticket #12151: 12151_1.diff

File 12151_1.diff, 627 bytes (added by Thejaswi Puthraya, 14 years ago)

patch to fix the issue

  • django/contrib/comments/views/utils.py

    diff --git a/django/contrib/comments/views/utils.py b/django/contrib/comments/views/utils.py
    index c5c900d..8b729d2 100644
    a b def confirmation_view(template, doc="Display a confirmation view."):  
    3939        if 'c' in request.GET:
    4040            try:
    4141                comment = comments.get_model().objects.get(pk=request.GET['c'])
    42             except ObjectDoesNotExist:
     42            except (ObjectDoesNotExist, ValueError):
    4343                pass
    4444        return render_to_response(template,
    4545            {'comment': comment},
Back to Top