8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

we want full ndd for ns and mx

This commit is contained in:
Charlie Jacomme 2018-08-07 10:30:23 +02:00
parent b9a4dd6d65
commit b89823faa1

View file

@ -734,7 +734,7 @@ class NSRecordSerializer(NsSerializer):
"""Serialize `machines.models.Ns` objects with the data needed to """Serialize `machines.models.Ns` objects with the data needed to
generate a NS DNS record. generate a NS DNS record.
""" """
target = serializers.CharField(source='ns.name', read_only=True) target = serializers.CharField(source='ns', read_only=True)
class Meta(NsSerializer.Meta): class Meta(NsSerializer.Meta):
fields = ('target',) fields = ('target',)
@ -744,7 +744,7 @@ class MXRecordSerializer(MxSerializer):
"""Serialize `machines.models.Mx` objects with the data needed to """Serialize `machines.models.Mx` objects with the data needed to
generate a MX DNS record. generate a MX DNS record.
""" """
target = serializers.CharField(source='name.name', read_only=True) target = serializers.CharField(source='name', read_only=True)
class Meta(MxSerializer.Meta): class Meta(MxSerializer.Meta):
fields = ('target', 'priority') fields = ('target', 'priority')