Example #1
0
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()))
Example #2
0
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()))
Example #3
0
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()))