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
|
human-readable name for the option that will appear
|
||||||
in the right sidebar.
|
in the right sidebar.
|
||||||
"""
|
"""
|
||||||
fts = tuple()
|
fts = []
|
||||||
for ft in FeatureType.objects.all():
|
for ft in FeatureType.objects.all():
|
||||||
if ft.feature_set.count() > 0:
|
if ft.feature_set.count() > 0:
|
||||||
t = (ft.id, ft.__unicode__(),)
|
t = (ft.id, ft.__unicode__(),)
|
||||||
fts.append(t)
|
fts.append(t)
|
||||||
|
|
||||||
return (
|
return fts
|
||||||
fts,
|
|
||||||
)
|
|
||||||
|
|
||||||
def queryset(self, request, queryset):
|
def queryset(self, request, queryset):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user