updated documentation and added public contact

This commit is contained in:
David Kennedy 2024-06-01 08:22:52 -04:00
parent 1e540335d6
commit 7c50b5fc2a
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
3 changed files with 51 additions and 14 deletions

View file

@ -2244,10 +2244,18 @@ class DraftDomainAdmin(ListHeaderAdmin, ImportExportModelAdmin):
# If no redirection is needed, return the original response
return response
class PublicContactResource(resources.ModelResource):
"""defines how each field in the referenced model should be mapped to the corresponding fields in the
import/export file"""
class PublicContactAdmin(ListHeaderAdmin):
class Meta:
model = models.PublicContact
class PublicContactAdmin(ListHeaderAdmin, ImportExportModelAdmin):
"""Custom PublicContact admin class."""
resource_classes = [PublicContactResource]
change_form_template = "django/admin/email_clipboard_change_form.html"
autocomplete_fields = ["domain"]