bug fix: prohibited to prevent data loss due to unsaved related object domainOwner.

This commit is contained in:
Usman Nasir
2020-03-11 15:57:23 +05:00
parent 52e6b116ed
commit 787f022ab4

View File

@@ -313,6 +313,8 @@ class DNS:
except:
zone = Domains(admin=admin, name=topLevelDomain, type="NATIVE")
zone.save()
content = "ns1." + topLevelDomain + " hostmaster." + topLevelDomain + " 1 10800 3600 604800 3600"
soaRecord = Records(domainOwner=zone,