Selaa lähdekoodia

se il record e' corretto, si torna alla lista dipendenti senza avvisi

Mauro 8 kuukautta sitten
vanhempi
sitoutus
ca101a988f
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      utente/views.py

+ 1 - 0
utente/views.py

@@ -302,6 +302,7 @@ def edit(request):
       try:
       try:
         utente.save()
         utente.save()
         print('utente: salvo record {}'.format(utente.codicefiscale))
         print('utente: salvo record {}'.format(utente.codicefiscale))
+        return  HttpResponseRedirect(reverse("utente:welcome"))
       except IntegrityError as ie:
       except IntegrityError as ie:
         print('utente: errore utente presente: {}'.format(utente.codicefiscale))
         print('utente: errore utente presente: {}'.format(utente.codicefiscale))
         utenteIE = Utente.objects.get(codicefiscale=fu.cleaned_data['codicefiscale'])
         utenteIE = Utente.objects.get(codicefiscale=fu.cleaned_data['codicefiscale'])