From d94ed5e99cc759ed3b6ae99a07824e8927d2a266 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 17 Aug 2016 18:38:38 -0500 Subject: [PATCH] Fix bug when viewing batch with no execution options --- tailbone/views/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/batch.py b/tailbone/views/batch.py index 9d4c12a2..2201ac0c 100644 --- a/tailbone/views/batch.py +++ b/tailbone/views/batch.py @@ -128,7 +128,7 @@ class BatchMasterView(MasterView): 'rows_grid': grid.render_complete(allow_save_defaults=False), } - if context['execute_enabled']: + if context['execute_enabled'] and self.has_execution_options: context['rendered_execution_options'] = self.render_execution_options() return self.render_to_response('view', context)