try list instead of tuple?

This commit is contained in:
Sanj 2011-08-25 17:41:38 +05:30
parent 9cfbfb70de
commit 9dd062d7d8

View File

@ -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):
""" """