mail: display only untriaged mails

This commit is contained in:
Frédéric Péters 2015-07-15 16:42:11 +02:00
parent caa9ceafae
commit dc2dededec
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class Home(object):
def render(self):
context = RequestContext(self.request)
context['mails'] = Mail.objects.all()
context['mails'] = Mail.objects.filter(triaged=False)
context['source_type'] = ContentType.objects.get_for_model(Mail)
tmpl = template.loader.get_template('welco/mail_home.html')
return tmpl.render(context)