mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 09:37:03 +02:00
added hosts to be viewable on admin for non-analysts
This commit is contained in:
parent
f8d2898836
commit
1b2f34935a
1 changed files with 3 additions and 2 deletions
|
@ -400,7 +400,8 @@ class HostIPInline(admin.StackedInline):
|
|||
|
||||
class MyHostAdmin(AuditedAdmin):
|
||||
"""Custom host admin class to use our inlines."""
|
||||
|
||||
search_fields = ["name","domain__name"]
|
||||
search_help_text = "Search by domain or hostname."
|
||||
inlines = [HostIPInline]
|
||||
|
||||
|
||||
|
@ -1252,7 +1253,7 @@ admin.site.register(models.Domain, DomainAdmin)
|
|||
admin.site.register(models.DraftDomain, DraftDomainAdmin)
|
||||
# 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.Host, MyHostAdmin)
|
||||
admin.site.register(models.Website, WebsiteAdmin)
|
||||
admin.site.register(models.PublicContact, AuditedAdmin)
|
||||
admin.site.register(models.DomainApplication, DomainApplicationAdmin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue