8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 22:52:26 +00:00

Affichage intelligent des ports ouverts dans la serialisation

This commit is contained in:
Gabriel Detraz 2018-08-05 11:18:53 +02:00
parent 63748168f2
commit cd7cf1cac4

View file

@ -656,7 +656,7 @@ class LocalEmailUsersSerializer(NamespacedHMSerializer):
class FirewallPortListSerializer(serializers.ModelSerializer): class FirewallPortListSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = machines.OuverturePort model = machines.OuverturePort
fields = ('begin', 'end', 'protocole', 'io') fields = ('begin', 'end', 'protocole', 'io', 'show_port')
class FirewallOuverturePortListSerializer(serializers.ModelSerializer): class FirewallOuverturePortListSerializer(serializers.ModelSerializer):
tcp_ports_in = FirewallPortListSerializer(many=True, read_only=True) tcp_ports_in = FirewallPortListSerializer(many=True, read_only=True)