From 6a66dd30e47ccc474683024fa124476865f9dd02 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Mon, 4 Jul 2016 03:01:09 +0200 Subject: [PATCH] Machines sur le profil --- machines/views.py | 4 ++-- templates/base.html | 2 +- users/templates/users/profil.html | 7 ++++--- users/views.py | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) 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 @@