Commit cd7cf1ca authored by Gabriel Detraz's avatar Gabriel Detraz

Affichage intelligent des ports ouverts dans la serialisation

parent 63748168
......@@ -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)
......
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