mail: also display avis that were not given (#11081)

This commit is contained in:
Frédéric Péters 2016-05-26 18:59:47 +02:00
parent 46b44136e9
commit dfe8e1e1ab
1 changed files with 1 additions and 1 deletions

View File

@ -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