Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored November 26, 2005

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/admin/views/main.py
2  django/contrib/admin/views/main.py
@@ -73,7 +73,7 @@ def get_filters(self, request):
73 73
                               for field_name in self.lookup_opts.admin.list_filter]
74 74
             for f in filter_fields:
75 75
                 spec = FilterSpec.create(f, request, self.params)
76  
-                if spec.has_output():
  76
+                if spec and spec.has_output():
77 77
                     self.filter_specs.append(spec)
78 78
         self.has_filters = bool(self.filter_specs)
79 79
 

0 notes on commit 37a0c11

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