Commit 629c43fb50e33213e071b93d868521218b0e0d43

Authored by Gust
1 parent 3b2935c8

Change mailing list filter format

Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Signed-off-by: Matheus Faria <matheus.sousa.faria@gmail.com>
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
colab/search/views.py
... ... @@ -5,6 +5,7 @@ from django.utils.translation import ugettext as _
5 5  
6 6 from haystack.views import SearchView
7 7 from colab.plugins.utils import filters_importer
  8 +from colab.super_archives.models import MailingList
8 9  
9 10 class ColabSearchView(SearchView):
10 11 def extra_context(self, *args, **kwargs):
... ... @@ -22,7 +23,10 @@ class ColabSearchView(SearchView):
22 23 (
23 24 'list',
24 25 _(u'Mailinglist'),
25   - self.request.GET.getlist('list')
  26 + self.request.GET.getlist('list'),
  27 + 'list',
  28 + [(v, v) for v in MailingList.objects.values_list(
  29 + 'name', flat=True)]
26 30 ),
27 31 ),
28 32 },
... ...