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='', read_only=True)
extension = serializers.CharField(source='', 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