mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-24 20:33:11 +00:00
serializers for dns reverse, cidr is list
This commit is contained in:
parent
1a46f3110f
commit
1cb0fb275b
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue