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

File comments-moderation-next-param.2.diff, 1.1 KB (added by Dmitri Fedortchenko <d@…>, 16 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)
     103    if next is None:
     104        next = request.GET.get('next',None)
    99105
    100106    # Delete on POST
    101107    if request.method == 'POST':
Back to Top