Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 37a0c110e2982360033510894b09df2394fac985 1 parent 5ad144b
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/views/main.py
2  django/contrib/admin/views/main.py
View
@@ -73,7 +73,7 @@ def get_filters(self, request):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.