Ticket #12151: 12151_1.diff
File 12151_1.diff, 627 bytes (added by , 15 years ago) |
---|
-
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."): 39 39 if 'c' in request.GET: 40 40 try: 41 41 comment = comments.get_model().objects.get(pk=request.GET['c']) 42 except ObjectDoesNotExist:42 except (ObjectDoesNotExist, ValueError): 43 43 pass 44 44 return render_to_response(template, 45 45 {'comment': comment},