diff --git a/bt/views.py b/bt/views.py index b7c99a2c41b1bc6ec02888d46b982974ffc204c8..658e474c1cdad246108ed8111d712ab67dd1da9c 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):