From 86e96273a5d56439de405ba4a9a63beb5fb5f865 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 10 Feb 2013 17:15:25 -0800 Subject: [PATCH] Fixed bug where requesting deletion of non-existent batch row was redirecting to a non-existent route. --- rattail/pyramid/views/batches/rows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rattail/pyramid/views/batches/rows.py b/rattail/pyramid/views/batches/rows.py index 9c389767..87840e0f 100644 --- a/rattail/pyramid/views/batches/rows.py +++ b/rattail/pyramid/views/batches/rows.py @@ -146,7 +146,7 @@ def batch_row_crud(request, attr): row_uuid = request.matchdict['uuid'] row = Session.query(batch.rowclass).get(row_uuid) if not row: - return HTTPFound(location=request.route_url('batch', uuid=batch.uuid)) + return HTTPFound(location=request.route_url('batch.read', uuid=batch.uuid)) class BatchRowCrud(CrudView):