Add emails to other pages

This commit is contained in:
zandercymatics 2024-03-15 10:22:17 -06:00
parent 1293f189a7
commit 48a4278240
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 10 additions and 3 deletions

View file

@ -649,7 +649,9 @@ class ContactAdmin(ListHeaderAdmin):
)
]
change_form_template = "django/admin/public_contact_change_form.html"
autocomplete_fields = ["user"]
change_form_template = "django/admin/email_clipboard_change_form.html"
# We name the custom prop 'contact' because linter
# is not allowing a short_description attr on it
@ -832,6 +834,8 @@ class DomainInvitationAdmin(ListHeaderAdmin):
# error.
readonly_fields = ["status"]
change_form_template = "django/admin/email_clipboard_change_form.html"
class DomainInformationAdmin(ListHeaderAdmin):
"""Customize domain information admin class."""
@ -1327,6 +1331,8 @@ class TransitionDomainAdmin(ListHeaderAdmin):
search_fields = ["username", "domain_name"]
search_help_text = "Search by user or domain name."
change_form_template = "django/admin/email_clipboard_change_form.html"
class DomainInformationInline(admin.StackedInline):
"""Edit a domain information on the domain page.
@ -1819,7 +1825,8 @@ class DraftDomainAdmin(ListHeaderAdmin):
class PublicContactAdmin(ListHeaderAdmin):
"""Custom PublicContact admin class."""
change_form_template = "django/admin/public_contact_change_form.html"
change_form_template = "django/admin/email_clipboard_change_form.html"
autocomplete_fields = ["domain"]
class VerifiedByStaffAdmin(ListHeaderAdmin):