Commit 1cb0fb27 authored by Charlie Jacomme's avatar Charlie Jacomme Committed by Gabriel Detraz

serializers for dns reverse, cidr is list

parent 1a46f311
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment