mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 23:43:47 +00:00
Serialisation du constructeur
This commit is contained in:
parent
ce7ced64e2
commit
2f79a6e9d9
1 changed files with 3 additions and 1 deletions
|
@ -689,9 +689,11 @@ class ProfilSerializer(NamespacedHMSerializer):
|
||||||
|
|
||||||
|
|
||||||
class ModelSwitchSerializer(NamespacedHMSerializer):
|
class ModelSwitchSerializer(NamespacedHMSerializer):
|
||||||
|
constructor = serializers.CharField(read_only=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = topologie.ModelSwitch
|
model = topologie.ModelSwitch
|
||||||
fields = ('reference', 'firmware')
|
fields = ('reference', 'firmware', 'constructor')
|
||||||
|
|
||||||
|
|
||||||
class SwitchBaySerializer(NamespacedHMSerializer):
|
class SwitchBaySerializer(NamespacedHMSerializer):
|
||||||
|
|
Loading…
Reference in a new issue