Commit a00ad6c5 authored by LEVY-FALK Hugo's avatar LEVY-FALK Hugo Committed by root

Nommage cohérent.

parent 779c2be2
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment