correction erreur redirect after deleteMachine
This commit is contained in:
parent
877db8fe17
commit
c8c9cd4a5b
@ -781,7 +781,7 @@ class MachineDeleteController(AuthenticatedRestController):
|
|||||||
|
|
||||||
""" Gestion des requêtes post sur ce controller """
|
""" Gestion des requêtes post sur ce controller """
|
||||||
@expose()
|
@expose()
|
||||||
def post(self, residence, member_uid, machine_id, redirect = True):
|
def post(self, residence, member_uid, machine_id, go_redirect = True):
|
||||||
residence_dn = Residences.get_dn_by_name(self.user, residence)
|
residence_dn = Residences.get_dn_by_name(self.user, residence)
|
||||||
|
|
||||||
# Récupération du membre et de la machine
|
# Récupération du membre et de la machine
|
||||||
@ -806,7 +806,7 @@ class MachineDeleteController(AuthenticatedRestController):
|
|||||||
#end if
|
#end if
|
||||||
|
|
||||||
# On redirige sur la page d'édition du membre
|
# On redirige sur la page d'édition du membre
|
||||||
if redirect:
|
if go_redirect:
|
||||||
redirect("/edit/member/" + residence + "/" + member_uid)
|
redirect("/edit/member/" + residence + "/" + member_uid)
|
||||||
#end if
|
#end if
|
||||||
#end def
|
#end def
|
||||||
|
Loading…
Reference in New Issue
Block a user