8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-26 00:43:46 +00:00

serializers for dns reverse, cidr is list

This commit is contained in:
Charlie Jacomme 2018-07-16 10:53:44 +02:00 committed by Gabriel Detraz
parent 1a46f3110f
commit 1cb0fb275b

View file

@ -822,7 +822,7 @@ class DNSReverseZonesSerializer(serializers.ModelSerializer):
"""
soa = SOARecordSerializer(source='extension.soa')
extension = serializers.CharField(source='extension.name', read_only=True)
cidrs = serializers.CharField(source='ip_set_cidrs_as_str', read_only=True)
cidrs = serializers.ListField(child=serializers.CharField(), source='ip_set_cidrs_as_str', read_only=True)
ns_records = NSRecordSerializer(many=True, source='extension.ns_set')
mx_records = MXRecordSerializer(many=True, source='extension.mx_set')
txt_records = TXTRecordSerializer(many=True, source='extension.txt_set')