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

# Ceci est la combinaison de 4 commits.

# Ceci est le premier message de validation :

Add building to the room serialiser

# Ceci est le message de validation numéro 2 :

Add dormitory to the building serialiser

# Ceci est le message de validation numéro 3 :

Add dormitory to the building serialiser

# Ceci est le message de validation numéro 4 :

Add dormitory to the building serialiser
This commit is contained in:
histausse 2020-09-01 14:01:19 +02:00
parent 2219582163
commit 89f91add15

View file

@ -115,8 +115,14 @@ class BuildingSerializer(NamespacedHMSerializer):
class Meta:
model = topologie.Building
fields = ("name", "api_url")
fields = ("name", "dormitory", "api_url")
class DormitorySerializer(NamespaceHMSerializer):
"""Serialize `topologie.models.Dormitory` objects
"""
class Meta:
model = topologie.Dormitory
fields = ("name", "api_url")
class SwitchPortSerializer(NamespacedHMSerializer):
"""Serialize `topologie.models.Port` objects
@ -176,7 +182,7 @@ class RoomSerializer(NamespacedHMSerializer):
class Meta:
model = topologie.Room
fields = ("name", "details", "api_url")
fields = ("name", "building", "details", "api_url")
class PortProfileSerializer(NamespacedHMSerializer):