Fix domain template. Drop PDNS 3.x support

This commit is contained in:
Khanh Ngo
2019-12-16 14:23:17 +07:00
parent a891ed38e2
commit 3196297f57
4 changed files with 49 additions and 147 deletions

View File

@ -168,7 +168,7 @@ def add():
record_row = {
'record_data': template_record.data,
'record_name': template_record.name,
'record_status': template_record.status,
'record_status': 'Active' if template_record.status else 'Disabled',
'record_ttl': template_record.ttl,
'record_type': template_record.type,
'comment_data': [{'content': template_record.comment, 'account': ''}]