From bb67fd3c32d56b012882e884e0163f77087c31d0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 19 Aug 2013 22:51:18 -0700 Subject: [PATCH] Fixed bug in batch rows grid view. --- rattail/pyramid/views/batches/rows.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rattail/pyramid/views/batches/rows.py b/rattail/pyramid/views/batches/rows.py index f6205d3e..134b75aa 100644 --- a/rattail/pyramid/views/batches/rows.py +++ b/rattail/pyramid/views/batches/rows.py @@ -122,8 +122,10 @@ def BatchRowsGrid(request): def batch_rows_grid(request): - grid = BatchRowsGrid(request) - return grid() + result = BatchRowsGrid(request) + if isinstance(result, HTTPFound): + return result + return result() def batch_rows_delete(request):