From 9dd062d7d8ed84fafbc721e2e50c22cc36d7f96f Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 25 Aug 2011 17:41:38 +0530 Subject: [PATCH] try list instead of tuple? --- gazetteer/places/admin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index aa94fe6..0713271 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -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): """