Ticket #8968: add-redirections-via-next-get.2.diff

File add-redirections-via-next-get.2.diff, 999 bytes (added by Dzhus, 6 years ago)

A simple patch to enable using next GET parameter with «delete comment» view

  • /home/sphinx/Django-1.0/django/contrib/comments/views/moderation.

    old new  
    3838
    3939    # Render a form on GET
    4040    else:
     41        next = request.GET.get('next', next)
    4142        return render_to_response('comments/flag.html',
    4243            {'comment': comment, "next": next},
    4344            template.RequestContext(request)
     
    7879
    7980    # Render a form on GET
    8081    else:
     82        next = request.GET.get('next', next)
    8183        return render_to_response('comments/delete.html',
    8284            {'comment': comment, "next": next},
    8385            template.RequestContext(request)
     
    121123
    122124    # Render a form on GET
    123125    else:
     126        next = request.GET.get('next', next)
    124127        return render_to_response('comments/approve.html',
    125128            {'comment': comment, "next": next},
    126129            template.RequestContext(request)
Back to Top