mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-08-19 13:43:40 +00:00
serializers for dns reverse, cidr is list
This commit is contained in:
parent
eb3f453106
commit
da2f5edb24
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue