def mail(request): backend = FakeEmailBackend() if request.method == 'POST': backend.clear() return redirect('zadmin.mail') return jingo.render(request, 'zadmin/mail.html', dict(mail=backend.view_all()))
def mail(request): backend = FakeEmailBackend() if request.method == "POST": backend.clear() return redirect("zadmin.mail") return jingo.render(request, "zadmin/mail.html", dict(mail=backend.view_all()))