mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 14:34:10 +02:00
Update admin.py
This commit is contained in:
parent
828c47de45
commit
c0c9817c99
1 changed files with 3 additions and 3 deletions
|
@ -3835,9 +3835,9 @@ class PublicContactAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
|
|
||||||
change_form_template = "django/admin/email_clipboard_change_form.html"
|
change_form_template = "django/admin/email_clipboard_change_form.html"
|
||||||
autocomplete_fields = ["domain"]
|
autocomplete_fields = ["domain"]
|
||||||
list_display = ("domain", "email", "name", "contact_type", "id")
|
list_display = ("name", "contact_type", "email", "domain", "registry_id")
|
||||||
search_fields = ["email", "name", "id"]
|
search_fields = ["email", "name", "registry_id"]
|
||||||
search_help_text = "Search by email, name or id."
|
search_help_text = "Search by email, name or registry id."
|
||||||
|
|
||||||
def changeform_view(self, request, object_id=None, form_url="", extra_context=None):
|
def changeform_view(self, request, object_id=None, form_url="", extra_context=None):
|
||||||
if extra_context is None:
|
if extra_context is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue