mirror of https://github.com/django/django.git
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:
parent
5ad144b29e
commit
37a0c110e2
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue