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
779c2be2de
commit
a00ad6c590
1 changed files with 1 additions and 1 deletions
|
@ -942,7 +942,7 @@ def del_portlist(request, pk):
|
|||
except PortList.DoesNotExist:
|
||||
messages.error(request, "Liste de ports inexistante")
|
||||
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")
|
||||
return redirect("/machines/index_portlist/")
|
||||
port_list_instance.delete()
|
||||
|
|
Loading…
Reference in a new issue