From dfe8e1e1ab697b16abcb1ae8f5fc10c9fe7d8598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 26 May 2016 18:59:47 +0200 Subject: [PATCH] mail: also display avis that were not given (#11081) --- welco/sources/mail/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/welco/sources/mail/models.py b/welco/sources/mail/models.py index bd7db29..64e5c6b 100644 --- a/welco/sources/mail/models.py +++ b/welco/sources/mail/models.py @@ -77,7 +77,7 @@ class Mail(models.Model): from welco.contrib.alfortville.models import Inbox return Inbox.objects.filter(subtype=Inbox.AVIS, source_type=ContentType.objects.get_for_model(Mail), - source_pk=self.id).exclude(comments__isnull=True).exclude(comments__exact='') + source_pk=self.id) def get_mandatory_avis(self): from welco.contrib.alfortville.models import Inbox