diff --git a/machines/views.py b/machines/views.py index 7abb8182..b89e9e71 100644 --- a/machines/views.py +++ b/machines/views.py @@ -47,7 +47,7 @@ def edit_machine(request, interfaceid): machine_form.save() interface_form.save() messages.success(request, "La machine a été modifiée") - return redirect("/users/") + return redirect("/machines/") return form({'machineform': machine_form, 'interfaceform': interface_form}, 'machines/machine.html', request) def new_interface(request, machineid): @@ -64,7 +64,7 @@ def new_interface(request, machineid): new_interface.machine = machine new_interface.save() messages.success(request, "L'interface a été ajoutée") - return redirect("/users/") + return redirect("/machines/") return form({'machineform': machine_form, 'interfaceform': interface_form}, 'machines/machine.html', request) def index(request): diff --git a/templates/base.html b/templates/base.html index 8142bc93..057a8905 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,7 +28,7 @@