alfortville: don't display multiple times the same mail in info table
This commit is contained in:
parent
813ca76dca
commit
e590660ec1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue