WIP urls, view, template, JS connecting tge template submission to view, rough-in the export method

This commit is contained in:
Rachid Mrad 2023-12-19 11:55:34 -05:00
parent 69d5dd4d5c
commit c2536d6300
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
13 changed files with 302 additions and 9 deletions

View file

@ -795,6 +795,9 @@ class DomainAdmin(ListHeaderAdmin):
"name",
"organization_type",
"state",
"created_at",
"deleted_at",
"expiration_date",
]
def organization_type(self, obj):
@ -809,7 +812,7 @@ class DomainAdmin(ListHeaderAdmin):
search_help_text = "Search by domain name."
change_form_template = "django/admin/domain_change_form.html"
change_list_template = "django/admin/domain_change_list.html"
readonly_fields = ["state", "expiration_date"]
readonly_fields = ["state", "expiration_date", "deleted_at"]
def export_data_type(self, request):
# match the CSV example with all the fields