alfortville: don't display multiple times the same mail in info table

This commit is contained in:
Frédéric Péters 2016-03-30 13:46:23 +02:00
parent 813ca76dca
commit e590660ec1
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class MailTable(TemplateView):
role_slug__in=user_roles,
source_type=content_type,
source_pk__in=[x.id for x in mails],
subtype=self.subtype, done=False)
subtype=self.subtype, done=False).order_by('source_pk').distinct('source_pk')
context['subtype'] = self.subtype
context['button_text'] = self.button_text