Test performance upgrade

This commit is contained in:
zandercymatics 2025-03-17 12:57:09 -06:00
parent 9d20769e6e
commit 20bde7df39
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 53 additions and 34 deletions

View file

@ -4147,11 +4147,13 @@ class PublicContactResource(resources.ModelResource):
class PublicContactAdmin(ListHeaderAdmin, ImportExportModelAdmin):
"""Custom PublicContact admin class."""
resource_classes = [PublicContactResource]
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"]
search_help_text = "Search by registry id, domain, or name."
def changeform_view(self, request, object_id=None, form_url="", extra_context=None):
if extra_context is None: