From 12cf400e2a78e1270c2a90382bd0e9c4a31e2f79 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 28 Mar 2018 20:46:17 +0200 Subject: [PATCH] Shell -> ListShell --- re2o/views.py | 6 +++--- users/urls.py | 4 ++-- users/views.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/re2o/views.py b/re2o/views.py index f6d6155a..9965dcda 100644 --- a/re2o/views.py +++ b/re2o/views.py @@ -65,7 +65,7 @@ HISTORY_BIND = { 'school' : users.models.School, 'listright' : users.models.ListRight, 'serviceuser' : users.models.ServiceUser, - 'shell' : users.models.ListShell, + 'listshell' : users.models.ListShell, }, 'preferences' : { 'service' : preferences.models.Service, @@ -81,8 +81,8 @@ HISTORY_BIND = { 'port' : topologie.models.Port, 'room' : topologie.models.Room, 'stack' : topologie.models.Stack, - 'model_switch' : topologie.models.ModelSwitch, - 'constructor_switch' : topologie.models.ConstructorSwitch, + 'modelswitch' : topologie.models.ModelSwitch, + 'constructorswitch' : topologie.models.ConstructorSwitch, 'accesspoint' : topologie.models.AccessPoint, }, 'machines' : { diff --git a/users/urls.py b/users/urls.py index 756498aa..fac55e44 100644 --- a/users/urls.py +++ b/users/urls.py @@ -82,12 +82,12 @@ urlpatterns = [ url(r'^del_listright/$', views.del_listright, name='del-listright'), url(r'^add_shell/$', views.add_shell, name='add-shell'), url( - r'^edit_shell/(?P[0-9]+)$', + r'^edit_shell/(?P[0-9]+)$', views.edit_shell, name='edit-shell' ), url( - r'^del_shell/(?P[0-9]+)$', + r'^del_shell/(?P[0-9]+)$', views.del_shell, name='del-shell' ), diff --git a/users/views.py b/users/views.py index e1bf5985..73332e8b 100644 --- a/users/views.py +++ b/users/views.py @@ -515,8 +515,8 @@ def add_shell(request): @login_required @can_edit(ListShell) -def edit_shell(request, shell_instance, shellid): - """ Editer un shell à partir du shellid""" +def edit_shell(request, shell_instance, listshellid): + """ Editer un shell à partir du listshellid""" shell = ShellForm(request.POST or None, instance=shell_instance) if shell.is_valid(): with transaction.atomic(), reversion.create_revision(): @@ -532,7 +532,7 @@ def edit_shell(request, shell_instance, shellid): @login_required @can_delete(ListShell) -def del_shell(request, shell, shellid): +def del_shell(request, shell, listshellid): """Destruction d'un shell""" if request.method == "POST": with transaction.atomic(), reversion.create_revision():