Re: variable from template to view

2019-09-13 Thread Luca Bertolotti
Hello again > I have solved with this: def canc_cli(request, idcliente): print('luca :'+str(idcliente)) Clienti.objects.filter(pk=idcliente).delete() return redirect('tutti_clienti') -- You received this message because you are subscribed to the Google Groups "Django users" group.

variable from template to view

2019-09-13 Thread Luca Bertolotti
Hello i have a question: This is the template: {% load static %} ID Ragione Sociale Via Cap Città Provincia Stato Contatto Tel.Fisso Tel.Cellulare Email {% for dati in tutti %} {{ dati.idclienti }} {{ da