From 2f79a6e9d9f4e9d8a00b0c2e9fdfee60eaaca97b 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 a99603fc..bdb9b140 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -689,9 +689,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):