From 37a0c110e2982360033510894b09df2394fac985 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 26 Nov 2005 06:42:28 +0000 Subject: [PATCH] Fixed #913 -- Made more helpful error for list_filter error. Thanks, Tom Tobin git-svn-id: http://code.djangoproject.com/svn/django/trunk@1438 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/views/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index f62fbbc01d..0c1baccc65 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -73,7 +73,7 @@ class ChangeList(object): for field_name in self.lookup_opts.admin.list_filter] for f in filter_fields: spec = FilterSpec.create(f, request, self.params) - if spec.has_output(): + if spec and spec.has_output(): self.filter_specs.append(spec) self.has_filters = bool(self.filter_specs)