Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 3590e1ed authored by Maël Kervella's avatar Maël Kervella

Fix serialization of MAC

parent f5267eae
......@@ -465,6 +465,7 @@ class WhitelistSerializer(NamespacedHMSerializer):
class HostMacIpSerializer(serializers.ModelSerializer):
hostname = serializers.CharField(source='domain.name', read_only=True)
extension = serializers.CharField(source='domain.extension.name', read_only=True)
mac_address = serializers.CharField(read_only=True)
ipv4 = serializers.CharField(source='ipv4.ipv4', read_only=True)
class Meta:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment