Add DNS models
This commit add model classes closely matching the tables defined in PowerDNS' schema as described at https://doc.powerdns.com/md/authoritative/backend-generic-mypgsql/. The commit includes the model definitions a schema migration including PostgreSQL specific CHECK constraints and the registration in the Django admin interface. addresses #17
This commit is contained in:
parent
8e954a1a8c
commit
1df2534cf3
3 changed files with 408 additions and 2 deletions
|
@ -6,9 +6,23 @@ with the django admin site.
|
|||
from django.contrib import admin
|
||||
|
||||
from .models import (
|
||||
MailDomain,
|
||||
DNSComment,
|
||||
DNSCryptoKey,
|
||||
DNSDomain,
|
||||
DNSDomainMetadata,
|
||||
DNSRecord,
|
||||
DNSSupermaster,
|
||||
DNSTSIGKey,
|
||||
HostingDomain,
|
||||
MailDomain,
|
||||
)
|
||||
|
||||
admin.site.register(MailDomain)
|
||||
admin.site.register(HostingDomain)
|
||||
admin.site.register(DNSComment)
|
||||
admin.site.register(DNSCryptoKey)
|
||||
admin.site.register(DNSDomain)
|
||||
admin.site.register(DNSDomainMetadata)
|
||||
admin.site.register(DNSRecord)
|
||||
admin.site.register(DNSSupermaster)
|
||||
admin.site.register(DNSTSIGKey)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue