From cd7cf1cac45454abae2c869188e82de99badfdc0 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sun, 5 Aug 2018 11:18:53 +0200 Subject: [PATCH] Affichage intelligent des ports ouverts dans la serialisation --- api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/serializers.py b/api/serializers.py index ba14dde5..05075606 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -656,7 +656,7 @@ class LocalEmailUsersSerializer(NamespacedHMSerializer): class FirewallPortListSerializer(serializers.ModelSerializer): class Meta: model = machines.OuverturePort - fields = ('begin', 'end', 'protocole', 'io') + fields = ('begin', 'end', 'protocole', 'io', 'show_port') class FirewallOuverturePortListSerializer(serializers.ModelSerializer): tcp_ports_in = FirewallPortListSerializer(many=True, read_only=True)