Ticket #8968: comments-moderation-next-param.2.diff
File comments-moderation-next-param.2.diff, 1.1 KB (added by , 16 years ago) |
---|
-
django/contrib/comments/views/moderation.py
19 19 the flagged `comments.comment` object 20 20 """ 21 21 comment = get_object_or_404(comments.get_model(), pk=comment_id, site__pk=settings.SITE_ID) 22 if next is None: 23 next = request.GET.get('next',None) 22 24 23 25 # Flag on POST 24 26 if request.method == 'POST': … … 56 58 the flagged `comments.comment` object 57 59 """ 58 60 comment = get_object_or_404(comments.get_model(), pk=comment_id, site__pk=settings.SITE_ID) 61 if next is None: 62 next = request.GET.get('next',None) 59 63 60 64 # Delete on POST 61 65 if request.method == 'POST': … … 96 100 the `comments.comment` object for approval 97 101 """ 98 102 comment = get_object_or_404(comments.get_model(), pk=comment_id, site__pk=settings.SITE_ID) 103 if next is None: 104 next = request.GET.get('next',None) 99 105 100 106 # Delete on POST 101 107 if request.method == 'POST':