8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-25 08:23:46 +00:00

Nommage cohérent.

This commit is contained in:
Hugo LEVY-FALK 2017-10-01 18:02:51 +02:00
parent 0209e32041
commit c0a692ea21

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