8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 22:52:26 +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: 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()