mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-26 11:41:57 +02:00
bug fix: prohibited to prevent data loss due to unsaved related object domainOwner.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user