Ticket #1347: delete.diff

File delete.diff, 779 bytes (added by anonymous, 19 years ago)
  • django/contrib/admin/views/main.py

     
    647647        obj.delete()
    648648        log.log_action(request.user.id, opts.get_content_type_id(), object_id, obj_display, log.DELETION)
    649649        request.user.add_message(_('The %(name)s "%(obj)s" was deleted successfully.') % {'name':opts.verbose_name, 'obj':obj_display})
    650         return HttpResponseRedirect("../../")
     650        return HttpResponseRedirect(request.GET.get('redirect', None) or "../../")
    651651    return render_to_response('admin/delete_confirmation', {
    652652        "title": _("Are you sure?"),
    653653        "object_name": opts.verbose_name,
Back to Top