Skip to content
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...
1 parent 5ad144b commit 37a0c110e2982360033510894b09df2394fac985 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/views/main.py
View
2 django/contrib/admin/views/main.py
@@ -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)

0 comments on commit 37a0c11

Please sign in to comment.
Something went wrong with that request. Please try again.