|
@@ -167,7 +167,6 @@ def switch_update_port(request, switch_id):
|
|
|
port.PL_Commentaires = line_split[1]
|
|
port.PL_Commentaires = line_split[1]
|
|
|
port.save()
|
|
port.save()
|
|
|
|
|
|
|
|
-
|
|
|
|
|
item.SW_Update_Port = None
|
|
item.SW_Update_Port = None
|
|
|
item.save()
|
|
item.save()
|
|
|
return HttpResponseRedirect(reverse('parc_info_switch_show_list')+get_value)
|
|
return HttpResponseRedirect(reverse('parc_info_switch_show_list')+get_value)
|
|
@@ -368,7 +367,12 @@ def user_edit_info(request, id_user):
|
|
|
|
|
|
|
|
#update history
|
|
#update history
|
|
|
|
|
|
|
|
- if item_org.PIC_Site.CLIN_Anag != item.PIC_Site.CLIN_Anag:
|
|
|
|
|
|
|
+ if item_org.PIC_Site == None:
|
|
|
|
|
+ history = PIC_History()
|
|
|
|
|
+ history.H_PIC = item
|
|
|
|
|
+ history.H_Commentaire = "Le site a été mise sur : " + item.PIC_Site.CLIN_Anag
|
|
|
|
|
+ history.save()
|
|
|
|
|
+ elif item_org.PIC_Site.CLIN_Anag != item.PIC_Site.CLIN_Anag:
|
|
|
history = PIC_History()
|
|
history = PIC_History()
|
|
|
history.H_PIC = item
|
|
history.H_PIC = item
|
|
|
history.H_Commentaire = "Le site a été modifié : " + item_org.PIC_Site.CLIN_Anag + " > " + item.PIC_Site.CLIN_Anag
|
|
history.H_Commentaire = "Le site a été modifié : " + item_org.PIC_Site.CLIN_Anag + " > " + item.PIC_Site.CLIN_Anag
|
|
@@ -378,12 +382,22 @@ def user_edit_info(request, id_user):
|
|
|
history.H_PIC = item
|
|
history.H_PIC = item
|
|
|
history.H_Commentaire = "Le type a été modifié : " + item_org.PIC_L_Chassi_Type + " > " + item.PIC_L_Chassi_Type
|
|
history.H_Commentaire = "Le type a été modifié : " + item_org.PIC_L_Chassi_Type + " > " + item.PIC_L_Chassi_Type
|
|
|
history.save()
|
|
history.save()
|
|
|
- if item_org.PIC_Nom_netbios != item.PIC_Nom_netbios :
|
|
|
|
|
|
|
+ if item_org.PIC_Nom_netbios == None :
|
|
|
|
|
+ history = PIC_History()
|
|
|
|
|
+ history.H_PIC = item
|
|
|
|
|
+ history.H_Commentaire = "Le nom netbios a été mise sur : " +item.PIC_Nom_netbios
|
|
|
|
|
+ history.save()
|
|
|
|
|
+ elif item_org.PIC_Nom_netbios != item.PIC_Nom_netbios :
|
|
|
history = PIC_History()
|
|
history = PIC_History()
|
|
|
history.H_PIC = item
|
|
history.H_PIC = item
|
|
|
- history.H_Commentaire = "Le nom net bios a été modifié : " + item_org.PIC_Nom_netbios + " > " + item.PIC_Nom_netbios
|
|
|
|
|
|
|
+ history.H_Commentaire = "Le nom netbios a été modifié : " + item_org.PIC_Nom_netbios + " > " + item.PIC_Nom_netbios
|
|
|
history.save()
|
|
history.save()
|
|
|
- if item_org.PIC_Service != item.PIC_Service :
|
|
|
|
|
|
|
+ if item_org.PIC_Service == None :
|
|
|
|
|
+ history = PIC_History()
|
|
|
|
|
+ history.H_PIC = item
|
|
|
|
|
+ history.H_Commentaire = "Le service a été mise sur : " + item.PIC_Service.SERVICE_Nom
|
|
|
|
|
+ history.save()
|
|
|
|
|
+ elif item_org.PIC_Service != item.PIC_Service :
|
|
|
history = PIC_History()
|
|
history = PIC_History()
|
|
|
history.H_PIC = item
|
|
history.H_PIC = item
|
|
|
history.H_Commentaire = "Le service a été modifié : " + item_org.PIC_Service.SERVICE_Nom + " > " + item.PIC_Service.SERVICE_Nom
|
|
history.H_Commentaire = "Le service a été modifié : " + item_org.PIC_Service.SERVICE_Nom + " > " + item.PIC_Service.SERVICE_Nom
|
|
@@ -393,7 +407,12 @@ def user_edit_info(request, id_user):
|
|
|
history.H_PIC = item
|
|
history.H_PIC = item
|
|
|
history.H_Commentaire = "La localisation a été modifié : " + item_org.PIC_Local + " > " + item.PIC_Local
|
|
history.H_Commentaire = "La localisation a été modifié : " + item_org.PIC_Local + " > " + item.PIC_Local
|
|
|
history.save()
|
|
history.save()
|
|
|
- if item_org.PIC_Utilisateur != item.PIC_Utilisateur :
|
|
|
|
|
|
|
+ if item_org.PIC_Utilisateur == None :
|
|
|
|
|
+ history = PIC_History()
|
|
|
|
|
+ history.H_PIC = item
|
|
|
|
|
+ history.H_Commentaire = "L'utilisateur a été mise sur : " + item.PIC_Utilisateur
|
|
|
|
|
+ history.save()
|
|
|
|
|
+ elif item_org.PIC_Utilisateur != item.PIC_Utilisateur :
|
|
|
history = PIC_History()
|
|
history = PIC_History()
|
|
|
history.H_PIC = item
|
|
history.H_PIC = item
|
|
|
history.H_Commentaire = "L'utilisateur a été modifié : " + item_org.PIC_Utilisateur + " > " + item.PIC_Utilisateur
|
|
history.H_Commentaire = "L'utilisateur a été modifié : " + item_org.PIC_Utilisateur + " > " + item.PIC_Utilisateur
|