Fixed bug where requesting deletion of non-existent batch row was redirecting

to a non-existent route.
This commit is contained in:
Lance Edgar 2013-02-10 17:15:25 -08:00
parent 3895091ad0
commit 86e96273a5

View file

@ -146,7 +146,7 @@ def batch_row_crud(request, attr):
row_uuid = request.matchdict['uuid'] row_uuid = request.matchdict['uuid']
row = Session.query(batch.rowclass).get(row_uuid) row = Session.query(batch.rowclass).get(row_uuid)
if not row: 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): class BatchRowCrud(CrudView):