From 9aa50de8c655e3ea5c44fdf372152b3350c2b5bb Mon Sep 17 00:00:00 2001 From: okhin Date: Tue, 5 Apr 2016 18:03:03 +0200 Subject: [PATCH] Still hunting for dat 500 error --- bt/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt/views.py b/bt/views.py index b7c99a2..658e474 100644 --- a/bt/views.py +++ b/bt/views.py @@ -256,7 +256,7 @@ class LookupView(SearchView): def get_context_data(self, *args, **kwargs): context = super(LookupView, self).get_context_data(*args, **kwargs) if 'object_list' in context: - context['object_list'] = [obj for obj in context['object_list'] if not obj.object.old] + context['object_list'] = [obj for obj in context['object_list'] if not obj.old] return context class ViolationSearchView(SearchView): -- GitLab