From cedd49e9092e2fa117d693cd41b422e9a7ec9623 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Mon, 9 Jul 2018 00:42:29 +0200 Subject: [PATCH] Serialisation du constructeur --- api/serializers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/serializers.py b/api/serializers.py index 8bb0833e..2e675add 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -715,9 +715,11 @@ class ProfilSerializer(NamespacedHMSerializer): class ModelSwitchSerializer(NamespacedHMSerializer): + constructor = serializers.CharField(read_only=True) + class Meta: model = topologie.ModelSwitch - fields = ('reference', 'firmware') + fields = ('reference', 'firmware', 'constructor') class SwitchBaySerializer(NamespacedHMSerializer):