mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 23:16:36 +02:00
Add searchbar to hostip
This commit is contained in:
parent
710fd395b5
commit
6f4f88607a
1 changed files with 5 additions and 0 deletions
|
@ -1248,6 +1248,11 @@ class HostIpAdmin(AuditedAdmin, ImportExportModelAdmin):
|
|||
resource_classes = [HostIpResource]
|
||||
model = models.HostIP
|
||||
|
||||
search_fields = ["host__name", "address"]
|
||||
search_help_text = "Search by host name or address."
|
||||
list_display = ("host", "address",)
|
||||
|
||||
|
||||
|
||||
class ContactResource(resources.ModelResource):
|
||||
"""defines how each field in the referenced model should be mapped to the corresponding fields in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue