Update admin.py

This commit is contained in:
zandercymatics 2025-01-14 10:33:00 -07:00
parent 828c47de45
commit c0c9817c99
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -3835,9 +3835,9 @@ class PublicContactAdmin(ListHeaderAdmin, ImportExportModelAdmin):
change_form_template = "django/admin/email_clipboard_change_form.html"
autocomplete_fields = ["domain"]
list_display = ("domain", "email", "name", "contact_type", "id")
search_fields = ["email", "name", "id"]
search_help_text = "Search by email, name or id."
list_display = ("name", "contact_type", "email", "domain", "registry_id")
search_fields = ["email", "name", "registry_id"]
search_help_text = "Search by email, name or registry id."
def changeform_view(self, request, object_id=None, form_url="", extra_context=None):
if extra_context is None: