diff --git a/ordr2/views/orders.py b/ordr2/views/orders.py index aef6cdb..63c21c6 100644 --- a/ordr2/views/orders.py +++ b/ordr2/views/orders.py @@ -38,6 +38,16 @@ def change_in_order_status(request, order, old): request.registry.notify(event) +@view_config( + context='ordr2:resources.OrderList', + name='view', + permission='view' + ) +def old_list_redirect(context, request): + ''' redirect the old /orders/view/ path to /orders/ ''' + return HTTPFound(context.url()) + + # oder list @view_config(