try list instead of tuple?
This commit is contained in:
parent
9cfbfb70de
commit
9dd062d7d8
|
@ -19,15 +19,13 @@ class FeatureTypeFilter(SimpleListFilter):
|
|||
human-readable name for the option that will appear
|
||||
in the right sidebar.
|
||||
"""
|
||||
fts = tuple()
|
||||
fts = []
|
||||
for ft in FeatureType.objects.all():
|
||||
if ft.feature_set.count() > 0:
|
||||
t = (ft.id, ft.__unicode__(),)
|
||||
fts.append(t)
|
||||
|
||||
return (
|
||||
fts,
|
||||
)
|
||||
return fts
|
||||
|
||||
def queryset(self, request, queryset):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user