8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

Serialisation du constructeur

This commit is contained in:
Gabriel Detraz 2018-07-09 00:42:29 +02:00 committed by Alexandre Iooss
parent 2143393f59
commit df2e376f89

View file

@ -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):