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
This commit is contained in:
Adrian Holovaty 2005-11-26 06:42:28 +00:00
parent 5ad144b29e
commit 37a0c110e2
1 changed files with 1 additions and 1 deletions

View File

@ -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)