8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Fix serialization of MAC

This commit is contained in:
Maël Kervella 2018-05-25 15:36:07 +00:00
parent f5267eae6c
commit 3590e1ed51

View file

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