From da2f5edb242a65148ff31dbe09926c8e98e826cf Mon Sep 17 00:00:00 2001 From: Charlie Jacomme Date: Mon, 16 Jul 2018 10:53:44 +0200 Subject: [PATCH] serializers for dns reverse, cidr is list --- api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/serializers.py b/api/serializers.py index 568ced34..d8917333 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -894,7 +894,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')