Ticket #8968: comments-moderation-next-param.diff

File comments-moderation-next-param.diff, 1.2 KB (added by Dmitri Fedortchenko <d@…>, 15 years ago)

I still believe this is a shortcoming...

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

     
    1919            the flagged `comments.comment` object
    2020    """
    2121    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)
    2224
    2325    # Flag on POST
    2426    if request.method == 'POST':
     
    5658            the flagged `comments.comment` object
    5759    """
    5860    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)
    5963
    6064    # Delete on POST
    6165    if request.method == 'POST':
     
    96100            the `comments.comment` object for approval
    97101    """
    98102    comment = get_object_or_404(comments.get_model(), pk=comment_id, site__pk=settings.SITE_ID)
    99 
     103    if next is None:
     104        next = request.GET.get('next',None)
    100105    # Delete on POST
    101106    if request.method == 'POST':
    102107        # Flag the comment as approved.
Back to Top