From 3177284a5ed31a07a75074be0d33322533cb7b32 Mon Sep 17 00:00:00 2001 From: Guilherme Gondim Date: Wed, 16 Dec 2009 19:57:58 +0000 Subject: [PATCH] Corrigido um bug. --- sigi/admin/filterspecs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/admin/filterspecs.py b/sigi/admin/filterspecs.py index d320f19..3e4a9a7 100644 --- a/sigi/admin/filterspecs.py +++ b/sigi/admin/filterspecs.py @@ -19,7 +19,7 @@ class AlphabeticFilterSpec(ChoicesFilterSpec): self.lookup_val = request.GET.get(self.lookup_kwarg, None) values_list = model.objects.values_list(f.name, flat=True) # getting the first char of values - self.lookup_choices = list(set(val[0] for val in values_list)) + self.lookup_choices = list(set(val[0] for val in values_list if val)) self.lookup_choices.sort() def choices(self, cl):