8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-04 17:06:27 +00:00

Nommage cohérent.

This commit is contained in:
LEVY-FALK Hugo 2017-10-01 18:02:51 +02:00 committed by root
parent 779c2be2de
commit a00ad6c590

View file

@ -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()