Commit 9aa50de8 authored by okhin's avatar okhin

Still hunting for dat 500 error

parent 2e5b2623
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment