remove Hosts from django admin, update docstrings on Host and HostIP

This commit is contained in:
David Kennedy 2023-12-29 06:23:33 -05:00
parent fdccfc0968
commit d0ca1ccff1
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
3 changed files with 7 additions and 5 deletions

View file

@ -1246,7 +1246,9 @@ admin.site.register(models.DomainInvitation, DomainInvitationAdmin)
admin.site.register(models.DomainInformation, DomainInformationAdmin)
admin.site.register(models.Domain, DomainAdmin)
admin.site.register(models.DraftDomain, DraftDomainAdmin)
admin.site.register(models.Host, MyHostAdmin)
# Host and HostIP removed from django admin because changes in admin
# do not propogate to registry and logic not applied
# admin.site.register(models.Host, MyHostAdmin)
admin.site.register(models.Website, WebsiteAdmin)
admin.site.register(models.PublicContact, AuditedAdmin)
admin.site.register(models.DomainApplication, DomainApplicationAdmin)

View file

@ -11,8 +11,8 @@ class Host(TimeStampedModel):
The registry is the source of truth for this data.
This model exists ONLY to allow a new registrant to draft DNS entries
before their application is approved.
This model exists to make hosts/nameservers and ip addresses
available when registry is not available.
"""
name = models.CharField(

View file

@ -10,8 +10,8 @@ class HostIP(TimeStampedModel):
The registry is the source of truth for this data.
This model exists ONLY to allow a new registrant to draft DNS entries
before their application is approved.
This model exists to make hosts/nameservers and ip addresses
available when registry is not available.
"""
address = models.CharField(