mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
we want full ndd for ns and mx
This commit is contained in:
parent
b9a4dd6d65
commit
b89823faa1
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue