Beispiel #1
0
def contato(request):
    contato_list = Contato.objects.filter(user = "******")
    try:
        formperfil = ContatoForm()
        
        if request.method == "POST":
            formperfil = ContatoForm(request.POST)
            formperfil.is_valid()
            formperfil.save()
    except:
        pass
    return render_to_response('contato.html', locals(), context_instance=RequestContext(request))
Beispiel #2
0
def contato(request):
    contato_list = Contato.objects.filter(user = request.session['username'])
    try:
        formperfil = ContatoForm(initial = {"user":request.session['username']})

        if request.method == "POST":
            formperfil = ContatoForm(request.POST)
            formperfil.is_valid()
            formperfil.save()
    except:
        pass
    return render_to_response('contato.html', locals(), context_instance=RequestContext(request))
Beispiel #3
0
def contato(request):
    contato_list = Contato.objects.filter(user="******")
    try:
        formperfil = ContatoForm()

        if request.method == "POST":
            formperfil = ContatoForm(request.POST)
            formperfil.is_valid()
            formperfil.save()
    except:
        pass
    return render_to_response('contato.html',
                              locals(),
                              context_instance=RequestContext(request))
Beispiel #4
0
def contato(request):
    contato_list = Contato.objects.filter(user=request.session['username'])
    try:
        formperfil = ContatoForm(initial={"user": request.session['username']})

        if request.method == "POST":
            formperfil = ContatoForm(request.POST)
            formperfil.is_valid()
            formperfil.save()
    except:
        pass
    return render_to_response('contato.html',
                              locals(),
                              context_instance=RequestContext(request))