mail: display only untriaged mails
This commit is contained in:
parent
caa9ceafae
commit
dc2dededec
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue