mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 08:52:16 +02:00
updated documentation and added public contact
This commit is contained in:
parent
1e540335d6
commit
7c50b5fc2a
3 changed files with 51 additions and 14 deletions
|
@ -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"]
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class Command(BaseCommand):
|
|||
"""Generates CSV files for specified tables and creates a zip archive"""
|
||||
table_names = [
|
||||
"User", "Contact", "Domain", "DomainRequest", "DomainInformation",
|
||||
"UserDomainRole", "DraftDomain", "Website", "HostIp", "Host"
|
||||
"UserDomainRole", "DraftDomain", "Website", "HostIp", "Host", "PublicContact"
|
||||
]
|
||||
|
||||
# Ensure the tmp directory exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue