mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Nommage cohérent.
This commit is contained in:
parent
0209e32041
commit
c0a692ea21
1 changed files with 1 additions and 1 deletions
|
@ -942,7 +942,7 @@ def del_portlist(request, pk):
|
||||||
except PortList.DoesNotExist:
|
except PortList.DoesNotExist:
|
||||||
messages.error(request, "Liste de ports inexistante")
|
messages.error(request, "Liste de ports inexistante")
|
||||||
return redirect("/machines/index_portlist/")
|
return redirect("/machines/index_portlist/")
|
||||||
if port_list_instance.interfaces.all():
|
if port_list_instance.interface_set.all():
|
||||||
messages.error(request, "Cette liste de ports est utilisée")
|
messages.error(request, "Cette liste de ports est utilisée")
|
||||||
return redirect("/machines/index_portlist/")
|
return redirect("/machines/index_portlist/")
|
||||||
port_list_instance.delete()
|
port_list_instance.delete()
|
||||||
|
|
Loading…
Reference in a new issue