Fixed bug where requesting deletion of non-existent batch row was redirecting
to a non-existent route.
This commit is contained in:
parent
3895091ad0
commit
86e96273a5
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue