mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 22:46:30 +02:00
Merge branch 'main' into cb/3212-subissues
This commit is contained in:
commit
3c2e6f5c04
7 changed files with 342 additions and 12 deletions
|
@ -1261,6 +1261,13 @@ class HostIpAdmin(AuditedAdmin, ImportExportRegistrarModelAdmin):
|
|||
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
|
||||
|
@ -4595,6 +4602,10 @@ class PublicContactAdmin(ListHeaderAdmin, ImportExportRegistrarModelAdmin):
|
|||
|
||||
change_form_template = "django/admin/email_clipboard_change_form.html"
|
||||
autocomplete_fields = ["domain"]
|
||||
list_display = ("registry_id", "contact_type", "domain", "name")
|
||||
search_fields = ["registry_id", "domain__name", "name"]
|
||||
search_help_text = "Search by registry id, domain, or name."
|
||||
list_filter = ("contact_type",)
|
||||
|
||||
def changeform_view(self, request, object_id=None, form_url="", extra_context=None):
|
||||
if extra_context is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue