diff --git a/apps/ops/views.py b/apps/ops/views.py index 145f72534..89d7e7b05 100644 --- a/apps/ops/views.py +++ b/apps/ops/views.py @@ -70,7 +70,7 @@ class TaskDetailView(DetailView): context = { 'app': 'Ops', 'action': 'Task record detail', - 'results': json.loads(self.object.summary), + 'results': json.loads(self.object.summary or '{}'), } kwargs.update(context) return super(TaskDetailView, self).get_context_data(**kwargs)