Jan Dittberner
1df2534cf3
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
28 lines
632 B
Python
28 lines
632 B
Python
"""
|
|
This module registers the model classes defined in :py:mod:`domains.models`
|
|
with the django admin site.
|
|
|
|
"""
|
|
from django.contrib import admin
|
|
|
|
from .models import (
|
|
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)
|